diff --git a/.gitignore b/.gitignore index 1d77a72..45af5c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +production.ini + # ---> Python # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/budgets/Budget-Vorlage-2021.xlsx b/budgets/Budget-Vorlage-2021.xlsx new file mode 100644 index 0000000..d5c3c34 Binary files /dev/null and b/budgets/Budget-Vorlage-2021.xlsx differ diff --git a/budgets/Budget-Vorlage-2022.xlsx b/budgets/Budget-Vorlage-2022.xlsx new file mode 100644 index 0000000..0322c27 Binary files /dev/null and b/budgets/Budget-Vorlage-2022.xlsx differ diff --git a/budgets/Budget-Vorlage-2023.xlsx b/budgets/Budget-Vorlage-2023.xlsx new file mode 100644 index 0000000..68c29f3 Binary files /dev/null and b/budgets/Budget-Vorlage-2023.xlsx differ diff --git a/superx_budget/superx.py b/superx_budget/superx.py index 11c3786..acc63fa 100644 --- a/superx_budget/superx.py +++ b/superx_budget/superx.py @@ -51,9 +51,10 @@ def _get_export_metadata(row): raise SuperXParserError( f"unexpected grouping: {metadata['Gruppierung']}" ) + date_part, *rest = metadata["Stand"].split(",") return SuperXResult( metadata["Haushaltsjahr"], - datetime.strptime(metadata["Stand"], "%d.%m.%Y"), + datetime.strptime(date_part.strip(), "%d.%m.%Y"), None, )