From 9ad4cf8035a32a7af2b269ccfa4917ab3b022151 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 23 Jan 2023 12:30:34 +0200 Subject: [PATCH] add exclamation mark --- files/routes/settings.py | 4 ++-- files/routes/users.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index 9b609c241..791014e9b 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -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") diff --git a/files/routes/users.py b/files/routes/users.py index 3b0c05f1a..9d8442a29 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -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)