Holger Frey 5 months ago
parent
commit
eefa1699d8
  1. 2
      .gitignore
  2. BIN
      budgets/Budget-Vorlage-2021.xlsx
  3. BIN
      budgets/Budget-Vorlage-2022.xlsx
  4. BIN
      budgets/Budget-Vorlage-2023.xlsx
  5. 3
      superx_budget/superx.py

2
.gitignore vendored

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
production.ini
# ---> Python
# Byte-compiled / optimized / DLL files
__pycache__/

BIN
budgets/Budget-Vorlage-2021.xlsx

Binary file not shown.

BIN
budgets/Budget-Vorlage-2022.xlsx

Binary file not shown.

BIN
budgets/Budget-Vorlage-2023.xlsx

Binary file not shown.

3
superx_budget/superx.py

@ -51,9 +51,10 @@ def _get_export_metadata(row): @@ -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,
)

Loading…
Cancel
Save