rename some config keys to clarify what they are

This commit is contained in:
Albert Yi
2016-11-28 17:28:47 -08:00
parent 428d4689d6
commit e7907e0e14
8 changed files with 30 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ class PopularSearchService
dates = date.strftime("%Y-%m-%d")
Cache.get("ps-#{scale}-#{dates}", 1.minute) do
url = URI.parse("#{Danbooru.config.report_server}/hits/#{scale}?date=#{dates}")
url = URI.parse("#{Danbooru.config.reportbooru_server}/hits/#{scale}?date=#{dates}")
response = ""
Net::HTTP.start(url.host, url.port, :use_ssl => url.is_a?(URI::HTTPS)) do |http|
http.read_timeout = 1