add exclamation mark

pull/93/head
Aevann 2023-01-23 12:30:34 +02:00
parent f277b9ab8a
commit 9ad4cf8035
2 changed files with 3 additions and 3 deletions

View File

@ -417,10 +417,10 @@ def gumroad(v):
response = [x for x in response if x['variants_and_quantity']]
response = response[0]
tier = tiers[response["variants_and_quantity"]]
if v.patron == tier: abort(400, f"{patron} rewards already claimed")
if v.patron == tier: abort(400, f"{patron} rewards already claimed!")
marseybux = marseybux_li[tier] - marseybux_li[v.patron]
if marseybux < 0: abort(400, f"{patron} rewards already claimed")
if marseybux < 0: abort(400, f"{patron} rewards already claimed!")
existing = g.db.query(User.id).filter(User.email == v.email, User.is_activated == True, User.patron >= tier).first()
if existing: abort(400, f"{patron} rewards already claimed on another account")

View File

@ -1359,7 +1359,7 @@ def settings_kofi(v:User):
transactions = g.db.query(Transaction).filter_by(email=v.email, claimed=None).all()
if not transactions:
abort(400, f"{patron} rewards already claimed")
abort(400, f"{patron} rewards already claimed!")
claim_rewards(v)