defer to popular searches for popular tag list

This commit is contained in:
r888888888
2017-05-01 17:56:34 -07:00
parent 440c5219bd
commit 3b414db844
2 changed files with 9 additions and 1 deletions

View File

@@ -19,6 +19,10 @@ class PopularSearchService
fetch_data.to_s.scan(/(.+?) (\d+)\.0\n/).slice(0, limit).each(&block)
end
def tags
fetch_data.to_s.scan(/(.+?) (\d+)\.0\n/).map {|x| x[0]}
end
def fetch_data
dates = date.strftime("%Y-%m-%d")