]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/badges/base.py
#OSQA-603, fixing the badges count calculation error. After the update of the count...
[osqa.git] / forum / badges / base.py
index 1900119284224270ab6d954d7e6a680e6fd1b4dc..79fcb523c73d5b1d1ab7c9a25becedc5cac40ca0 100644 (file)
@@ -69,7 +69,7 @@ class AbstractBadge(object):
             trigger = isinstance(action, Action) and action or None
 
             if not awarded:
-                AwardAction(user=user, node=node, ip=action.ip).save(data=dict(badge=cls.ondb, trigger=trigger))
+                AwardAction(user=user, node=node).save(data=dict(badge=cls.ondb, trigger=trigger))
         except MultipleObjectsReturned:
             if node:
                 logging.error('Found multiple %s badges awarded for user %s (%s)' % (self.name, user.username, user.id))