]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/default_badges/badges.py
Commit for OSQA Jira 501. Minor change in syntax of Akismet can_bypass_spam_check...
[osqa.git] / forum_modules / default_badges / badges.py
index 7bc6a2ee59a404d1352720cc6dae9de75cb06305..f0a893078912e6f61106b1d140e769785c582363 100644 (file)
@@ -222,7 +222,7 @@ class Pundit(AbstractBadge):
 
     def award_to(self, action):
         if action.user.nodes.filter_state(deleted=False).filter(node_type="comment").count() == int(
-                settings.CIVIC_DUTY_VOTES):
+                settings.PUNDIT_COMMENT_COUNT):
             return action.user
 
 
@@ -294,7 +294,7 @@ class Guru(AbstractBadge):
 
     def award_to(self, action):
         if (action.node.node_type == "answer") and (action.node.accepted) and (
-        action.node.score >= int(settings.ENLIGHTENED_UP_VOTES)):
+        action.node.score >= int(settings.GURU_UP_VOTES)):
             return action.node.author