From 36c69cca0acdef873a72ee77ec6f459d6bd07668 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 4 Dec 2022 00:51:52 +0200 Subject: [PATCH] kofi - only change patron tier when its a supscription --- files/routes/users.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index a0acb0957..73c155d79 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1150,7 +1150,8 @@ def settings_kofi(v:User): for transaction in transactions: tier = kofi_tiers[transaction.amount] marseybux += marseybux_li[tier] - if tier > highest_tier: highest_tier = tier + if transaction.type == 'Subscription' and tier > highest_tier: + highest_tier = tier transaction.claimed = True g.db.add(transaction)