This commit is contained in:
fireworks88 2021-07-30 20:51:29 +02:00
parent 7c548cc980
commit b607dd5457

View file

@ -300,8 +300,9 @@ class User(Base, Stndrd, Age_times):
def display_awards(self):
_awards = {}
active_awards = [x for x in self.awards if not x.given]
for a in self.awards:
for a in active_awards:
if a.kind in _awards:
_awards[a.kind]['count'] += 1
else: