forked from MarseyWorld/MarseyWorld
check for existing in /gumroad
parent
28b4f07493
commit
71b97c1a15
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue