to iterate by key,value we need to .items() on dict (badges.py)

This commit is contained in:
jesopo 2018-12-20 16:31:04 +00:00
parent 0f37455665
commit f98797cd23

View file

@ -27,7 +27,7 @@ class Module(ModuleManager.BaseModule):
now = self._now() now = self._now()
badges = [] 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)) days_since = self._days_since(now, self._parse_datettime(date))
badges.append("%s: %s" % (badge, days_since)) badges.append("%s: %s" % (badge, days_since))