FEATURE: push Reader up to 100

This commit is contained in:
Sam 2014-07-18 15:57:03 +10:00
parent 4feedecce4
commit ed6766ccad
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ class Badge < ActiveRecord::Base
b.topic_id = pt.topic_id b.topic_id = pt.topic_id
JOIN topics t ON t.id = pt.topic_id JOIN topics t ON t.id = pt.topic_id
LEFT JOIN user_badges ub ON ub.badge_id = 17 AND ub.user_id = pt.user_id LEFT JOIN user_badges ub ON ub.badge_id = 17 AND ub.user_id = pt.user_id
WHERE ub.id IS NULL AND t.posts_count > 50 WHERE ub.id IS NULL AND t.posts_count > 100
GROUP BY pt.user_id, pt.topic_id, t.posts_count GROUP BY pt.user_id, pt.topic_id, t.posts_count
HAVING count(*) = t.posts_count HAVING count(*) = t.posts_count
) )

View file

@ -2024,4 +2024,4 @@ en:
description: Read the <a href="/guidelines">community guidelines</a> description: Read the <a href="/guidelines">community guidelines</a>
reader: reader:
name: Reader name: Reader
description: Read every post in a topic with more than 50 posts description: Read every post in a topic with more than 100 posts