From 544af2d8e5cd16997d32a846686c4e4225c7665a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 18 Sep 2022 02:55:04 +0200 Subject: [PATCH] fix gumroad --- files/routes/settings.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index cb94d13c59..c381c1799d 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -356,9 +356,6 @@ def gumroad(v): tier = tiers[response["variants_and_quantity"]] if v.patron == tier: return {"error": f"{patron} rewards already claimed"}, 400 - procoins = procoins_li[tier] - procoins_li[v.patron] - if procoins < 0: return {"error": f"{patron} rewards already claimed"}, 400 - existing = g.db.query(User.id).filter(User.email == v.email, User.is_activated == True, User.patron >= tier).first() if existing: return {"error": f"{patron} rewards already claimed on another account"}, 400