diff --git a/budgets/Budget-Vorlage-2024.xlsx b/budgets/Budget-Vorlage-2024.xlsx index b063b76..8716c78 100644 Binary files a/budgets/Budget-Vorlage-2024.xlsx and b/budgets/Budget-Vorlage-2024.xlsx differ diff --git a/superx_budget/__init__.py b/superx_budget/__init__.py index ba77f8b..3f7aa16 100644 --- a/superx_budget/__init__.py +++ b/superx_budget/__init__.py @@ -21,7 +21,7 @@ from .helpers import ( # noqa: F401 ) from .overview import create_overview from .pyramid import main # noqa: F401 -from .superx import parse_exported_file # noqa: F401 +from .superx import parse_exported_file def cli_parse_exported_file(): @@ -34,7 +34,7 @@ def cli_parse_exported_file(): with warnings.catch_warnings(action="ignore"): sys.stderr.write(f"trying to read '{args.filename}'\n") - exported = superx.parse_exported_file(pathlib.Path(args.filename)) + exported = parse_exported_file(pathlib.Path(args.filename)) sys.stderr.write("... OK\n") sys.stderr.write( @@ -55,13 +55,18 @@ def cli_parse_exported_file(): sys.stderr.write("... OK\n") sys.stderr.write("Sorting overview\n") + # this here is the data from the overview template overview = sorted(overview_map.values(), key=lambda i: i.row) + # this is a simple check if the overview data is not completly off + _ = str(overview) sys.stderr.write("... OK\n") sys.stderr.write("Geting recipients file\n") - recipients = find_recipients(budget_dir) + recipients = find_recipients(budget_dir) # noqa: F841 sys.stderr.write("... OK\n") sys.stderr.write("Retrieving sheet for export\n") - sheet = get_sheet_of_file(budget_file) + sheet = get_sheet_of_file(budget_file) # noqa: F841 sys.stderr.write("... OK\n") + + sys.stderr.write("quick parser test did not find any errors\n")