From e8ce2f06aec412e55c35ea6b783fb47c4849c7f8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 1 Nov 2021 20:56:56 +0200 Subject: [PATCH] dsfdsf --- files/routes/awards.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index ffd767bc0..c73808a96 100755 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -234,7 +234,8 @@ def shop(v): }, } - for useraward in g.db.query(AwardRelationship).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all(): AWARDS[useraward.kind]["owned"] += 1 + for useraward in g.db.query(AwardRelationship).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all(): + if useraward.kind in AWARDS: AWARDS[useraward.kind]["owned"] += 1 if v.patron == 1: discount = 0.90 elif v.patron == 2: discount = 0.85