forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-03-29 20:48:17 +02:00
parent 79b92cf8b3
commit e033fc14a7
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ def gumroad(v):
tier = tiers[response["variants_and_quantity"]]
if v.patron == tier: return {"error": f"{patron} rewards already claimed"}, 400
existing = g.db.query(User.id).filter_by(email=v.email, is_activated=True, patron=tier).one_or_none()
existing = g.db.query(User.id).filter(User.email == v.email, User.is_activated == True, User.patron >= tier).one_or_none()
if existing: return {"error": f"{patron} rewards already claimed on another account"}, 400
if v.patron: