Skip to content

Commit 2e0e6f6

Browse files
committed
fixed typo in spammy_users hours calculation
1 parent 7d284a7 commit 2e0e6f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/moderator_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def user_vote_summary
7373

7474
def spammy_users
7575
script = File.read(Rails.root.join('db/scripts/potential_spam_profiles.sql'))
76-
hours = { 'day' => 7, 'week' => 168, 'month' => 744 }
76+
hours = { 'day' => 24, 'week' => 168, 'month' => 744 }
7777
script = script.gsub('$HOURS', hours[params[:period]]&.to_s || '744')
7878
user_ids = ApplicationRecord.connection.execute(script).to_a.flatten
7979
@users = User.where(id: user_ids).limit(20)

0 commit comments

Comments
 (0)