]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/default_badges/badges.py
init the Facebook api inside check_login_status() method. This used to cause troubles...
[osqa.git] / forum_modules / default_badges / badges.py
index cd160d81f8ccd341af76e5929226ee945f6f824f..893d32a322457732e8acbc299d930383ef9762a1 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
 
 
@@ -308,7 +308,7 @@ class Necromancer(AbstractBadge):
     def award_to(self, action):
         if (action.node.node_type == "answer") and (
         action.node.added_at >= (action.node.question.added_at + timedelta(days=int(settings.NECROMANCER_DIF_DAYS)))
-        ) and (action.node.score == settings.NECROMANCER_UP_VOTES):
+        ) and (int(action.node.score) == int(settings.NECROMANCER_UP_VOTES)):
             return action.node.author
 
 class Taxonomist(AbstractBadge):