forked from MarseyWorld/MarseyWorld
add exclamation mark
parent
f277b9ab8a
commit
9ad4cf8035
|
@ -417,10 +417,10 @@ def gumroad(v):
|
||||||
response = [x for x in response if x['variants_and_quantity']]
|
response = [x for x in response if x['variants_and_quantity']]
|
||||||
response = response[0]
|
response = response[0]
|
||||||
tier = tiers[response["variants_and_quantity"]]
|
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]
|
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()
|
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")
|
if existing: abort(400, f"{patron} rewards already claimed on another account")
|
||||||
|
|
|
@ -1359,7 +1359,7 @@ def settings_kofi(v:User):
|
||||||
transactions = g.db.query(Transaction).filter_by(email=v.email, claimed=None).all()
|
transactions = g.db.query(Transaction).filter_by(email=v.email, claimed=None).all()
|
||||||
|
|
||||||
if not transactions:
|
if not transactions:
|
||||||
abort(400, f"{patron} rewards already claimed")
|
abort(400, f"{patron} rewards already claimed!")
|
||||||
|
|
||||||
claim_rewards(v)
|
claim_rewards(v)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue