diff --git a/app/logical/post_sets/post.rb b/app/logical/post_sets/post.rb index 0d9d349a2..40a8fbe9b 100644 --- a/app/logical/post_sets/post.rb +++ b/app/logical/post_sets/post.rb @@ -73,6 +73,8 @@ module PostSets count = ::Post.fast_count(tag_string, :statement_timeout => CurrentUser.user.statement_timeout) if count == 1_000_000 # count timed out chance = 0.01 + elsif count == 0 + chance = 1 else chance = per_page / count.to_f end diff --git a/app/views/reports/janitor_trials.html.erb b/app/views/reports/janitor_trials.html.erb index 0077ce2fa..a0fb193b7 100644 --- a/app/views/reports/janitor_trials.html.erb +++ b/app/views/reports/janitor_trials.html.erb @@ -18,24 +18,22 @@
- <% cache("janitor-trials-report/#{Date.today}") do %> - <% @report.janitors.each do |janitor| %> -