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