fix 500 error on /settings/gumroad

master
Aevann1 2022-06-18 03:59:33 +02:00
parent 76ac00f04b
commit 712bb52392
1 changed files with 1 additions and 0 deletions

View File

@ -388,6 +388,7 @@ def gumroad(v):
if len(response) == 0: return {"error": "Email not found"}, 404
response = [x for x in response if x['variants_and_quantity']]
response = response[0]
tier = tiers[response["variants_and_quantity"]]
if v.patron == tier: return {"error": f"{patron} rewards already claimed"}, 400