handle someone registering an existing transaction
parent
c71d6f264c
commit
e494539221
|
@ -2078,6 +2078,10 @@ def insert_transaction_post(v):
|
||||||
|
|
||||||
amount = int(amount)
|
amount = int(amount)
|
||||||
|
|
||||||
|
existing = g.db.get(Transaction, id)
|
||||||
|
if existing:
|
||||||
|
abort(400, "This transaction is already registered!")
|
||||||
|
|
||||||
user = get_user(username)
|
user = get_user(username)
|
||||||
|
|
||||||
if not user.email:
|
if not user.email:
|
||||||
|
|
Loading…
Reference in New Issue