check for existing in /gumroad

master
Aevann 2023-03-23 15:33:57 +02:00
parent 28b4f07493
commit 71b97c1a15
1 changed files with 4 additions and 0 deletions

View File

@ -1432,6 +1432,10 @@ def gumroad():
abort(400) abort(400)
id = data['sale_id'] id = data['sale_id']
existing = g.db.get(Transaction, id)
if existing: return ''
created_utc = time.time() created_utc = time.time()
type = data['recurrence'] type = data['recurrence']
amount = int(data['price']) / 100 amount = int(data['price']) / 100