Fix #4522: Sidebar doesn't show most searched tags at certain times of day.
Revert back to previous workaround of fetching previous day if current day returns no result. A terrible hack, really we should convert dates to Reportbooru's timezone, but that has other complications.
This commit is contained in:
@@ -28,11 +28,11 @@ module Explore
|
||||
|
||||
def searches
|
||||
@date, @scale, @min_date, @max_date = parse_date(params)
|
||||
@search_service = ReportbooruService.new
|
||||
@searches = ReportbooruService.new.popular_searches(@date)
|
||||
end
|
||||
|
||||
def missed_searches
|
||||
@search_service = ReportbooruService.new
|
||||
@missed_searches = ReportbooruService.new.missed_search_rankings
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user