to iterate by key,value we need to .items() on dict (badges.py)
This commit is contained in:
parent
0f37455665
commit
f98797cd23
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
now = self._now()
|
||||
badges = []
|
||||
for badge, date in self._get_badges(user):
|
||||
for badge, date in self._get_badges(user).items():
|
||||
days_since = self._days_since(now, self._parse_datettime(date))
|
||||
badges.append("%s: %s" % (badge, days_since))
|
||||
|
||||
|
|
Loading…
Reference in a new issue