From e9dcb88da5192f7832845943f67874e5204471db Mon Sep 17 00:00:00 2001 From: Mathias Scheider Date: Sat, 12 Sep 2026 21:00:00 +0200 Subject: [PATCH] fix settings template --- settings.template.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/settings.template.py b/settings.template.py index 7f0e48c..af27e8e 100644 --- a/settings.template.py +++ b/settings.template.py @@ -3,13 +3,12 @@ from pathlib import Path from faker import Faker from src.constants import Currency -from src.ingest.b4w import ingest_b4w, reader_b4w -from src.ingest.comdirect import reader_comdirect from src.models import ( ComdirectCreditCard, ComdirectDepot, ComdirectGiro, ) +from src.models.b4w import B4wExport from src.models.settings import Account, Source fake = Faker() @@ -18,11 +17,10 @@ BANK_ACCOUNTS = { "b4w": Source( name="b4w", source_path=Path(""), - reader_function=reader_b4w, accounts=[ Account( name="b4w", - ingestion_function=ingest_b4w, + model=B4wExport, iban=fake.iban(), currency=Currency.EUR, ) @@ -31,29 +29,28 @@ BANK_ACCOUNTS = { "comdirect": Source( name="comdirect", source_path=Path(""), - reader_function=reader_comdirect, accounts=[ Account( name="Girokonto", - ingestion_function=lambda x: ComdirectGiro.model_validate(x), + model=ComdirectGiro, iban=fake.iban(), currency=Currency.EUR, ), Account( name="Visa-Karte (Kreditkarte)", - ingestion_function=lambda x: ComdirectCreditCard.model_validate(x), + model=ComdirectCreditCard, iban=fake.iban(), currency=Currency.EUR, ), Account( name="Tagesgeld PLUS-Konto", - ingestion_function=lambda x: ComdirectGiro.model_validate(x), + model=ComdirectGiro, iban=fake.iban(), currency=Currency.EUR, ), Account( name="Depot", - ingestion_function=lambda x: ComdirectDepot.model_validate(x), + model=ComdirectDepot, iban=fake.iban(), currency=Currency.EUR, ),