Fix error in user import

This commit is contained in:
2026-06-28 10:43:18 +02:00
parent 79c348395c
commit 1719c0d519

View File

@@ -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: