remotes/1693045480750635534/spooky-22
Aevann1 2021-11-01 20:56:56 +02:00
parent 08b1e1cef7
commit e8ce2f06ae
1 changed files with 2 additions and 1 deletions

View File

@ -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