From e2f06c69a043ca0b3bd64da0bddcc4443fd14f9d Mon Sep 17 00:00:00 2001 From: jordan Date: Fri, 15 Apr 2011 13:32:30 +0000 Subject: [PATCH 1/1] OSQA-606, we convert the node score and the NECROMANCER_UP_VOTES setting to Integer objects. This way we're sure that the both variables are of the same type. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@986 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum_modules/default_badges/badges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum_modules/default_badges/badges.py b/forum_modules/default_badges/badges.py index f0a8930..893d32a 100644 --- a/forum_modules/default_badges/badges.py +++ b/forum_modules/default_badges/badges.py @@ -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): -- 2.39.5