Fix error in user import
This commit is contained in:
@@ -131,10 +131,10 @@ def import_transactions(filepath: str):
|
||||
continue
|
||||
user = users[0]
|
||||
|
||||
if account not in user.accounts:
|
||||
print(f"Adding user {user.username} to account {account.name}")
|
||||
user.accounts.append(account)
|
||||
db.flush()
|
||||
if account not in user.accounts:
|
||||
print(f"Adding user {user.username} to account {account.name}")
|
||||
user.accounts.append(account)
|
||||
db.flush()
|
||||
|
||||
if transaction_type == "essen" or transaction_type == "essen kind":
|
||||
if row["stueck"] == 0:
|
||||
|
||||
Reference in New Issue
Block a user