X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/e1b1e52bc26c0bedc0a7cb4a65783e33ea8c6b5d..e5e5de37eb43fbdbe45394d220fead223047fd5b:/forum_modules/default_badges/badges.py diff --git a/forum_modules/default_badges/badges.py b/forum_modules/default_badges/badges.py index 7bc6a2e..f0a8930 100644 --- a/forum_modules/default_badges/badges.py +++ b/forum_modules/default_badges/badges.py @@ -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