fix popular search service

This commit is contained in:
r888888888
2018-05-27 03:00:05 -07:00
parent 4f0f622d7b
commit 1ea0dccd7f

View File

@@ -26,7 +26,7 @@ class PopularSearchService
dates = date.strftime("%Y-%m-%d")
Cache.get("ps-day-#{dates}", 1.minute) do
url = "#{Danbooru.config.reportbooru_server}/post_searches/day?date=#{dates}"
url = "#{Danbooru.config.reportbooru_server}/post_searches/rank?date=#{dates}"
response = HTTParty.get(url, Danbooru.config.httparty_options.reverse_merge(timeout: 3))
if response.success?
response = response.body