fix scale reference

This commit is contained in:
r888888888
2017-11-10 15:59:23 -08:00
parent 8458c62e8a
commit 6c4eb62957
2 changed files with 3 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ class PostViewCountService
end
def fetch_count(post_id)
url = URI.parse("#{Danbooru.config.reportbooru_server}/post_views/#{post_id}?date=#{date}")
url = URI.parse("#{Danbooru.config.reportbooru_server}/post_views/#{post_id}")
response = HTTParty.get(url, Danbooru.config.httparty_options.reverse_merge(timeout: 6))
if response.success?
return JSON.parse(response.body)