From b68a9bca46797614672ff7507b200ee1c5f93360 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 3 Dec 2021 21:49:50 +0200 Subject: [PATCH] fdsfsd --- files/routes/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index e963c9cb0..c36112e70 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -504,7 +504,7 @@ def gumroad(v): if v.email not in emails: return {"error": "Email not found"}, 404 - response = response[0] + response = requests.get('https://api.gumroad.com/v2/sales', data=data, timeout=5).json()["sales"][0] tier = tiers[response["variants_and_quantity"]] if v.patron == tier: return {"error": f"{patron} rewards already claimed"}, 400