handle someone registering an existing transaction

pull/216/head
Aevann 2023-10-18 21:30:11 +03:00
parent c71d6f264c
commit e494539221
1 changed files with 4 additions and 0 deletions

View File

@ -2078,6 +2078,10 @@ def insert_transaction_post(v):
amount = int(amount)
existing = g.db.get(Transaction, id)
if existing:
abort(400, "This transaction is already registered!")
user = get_user(username)
if not user.email: