From 8449981617ffea4c8dc4d22b2909cd715c9761db Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 9 Feb 2023 08:24:03 +0200 Subject: [PATCH] minor fix --- files/routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index 746b65907..0447ee9f1 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1296,10 +1296,10 @@ def claim_rewards(v): send_repeatable_notification(v.id, f"You have received {marseybux} Marseybux! You can use them to buy awards or hats in the [shop](/shop) or gamble them in the [casino](/casino).") g.db.add(v) + v.patron_utc = time.time() + 2937600 if highest_tier > v.patron: v.patron = highest_tier - v.patron_utc = time.time() + 2937600 for badge in g.db.query(Badge).filter(Badge.user_id == v.id, Badge.badge_id > 20, Badge.badge_id < 28).all(): g.db.delete(badge) badge_grant(badge_id=20+highest_tier, user=v)