From 71b97c1a15040294ce36acf634f81abc4368694d Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 23 Mar 2023 15:33:57 +0200 Subject: [PATCH] check for existing in /gumroad --- files/routes/users.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/routes/users.py b/files/routes/users.py index e683ea91b..67f4bf5be 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1432,6 +1432,10 @@ def gumroad(): abort(400) id = data['sale_id'] + + existing = g.db.get(Transaction, id) + if existing: return '' + created_utc = time.time() type = data['recurrence'] amount = int(data['price']) / 100