From 3b64aeaf21c278dd25916c15e501dc6ef00f0594 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Fri, 31 Mar 2017 16:33:50 -0700 Subject: [PATCH] loosen new user of the month criteria slightly --- app/jobs/scheduled/grant_new_user_of_the_month_badges.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb b/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb index 1bc257ee2ae..c06f183dbbc 100644 --- a/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb +++ b/app/jobs/scheduled/grant_new_user_of_the_month_badges.rb @@ -54,7 +54,7 @@ module Jobs NOT(u.moderator) AND u.created_at >= CURRENT_TIMESTAMP - '1 month'::INTERVAL GROUP BY u.id - HAVING COUNT(DISTINCT p.id) > 3 AND COUNT(DISTINCT p.topic_id) > 1 + HAVING COUNT(DISTINCT p.id) > 1 AND COUNT(DISTINCT p.topic_id) > 1 ORDER BY score DESC LIMIT :max_awarded SQL