Browse Source

fixes for crash 2024-09

main
Holger Frey 2 months ago
parent
commit
e2cf6a7e79
  1. BIN
      budgets/Budget-Vorlage-2024.xlsx
  2. 13
      superx_budget/__init__.py

BIN
budgets/Budget-Vorlage-2024.xlsx

Binary file not shown.

13
superx_budget/__init__.py

@ -21,7 +21,7 @@ from .helpers import ( # noqa: F401
) )
from .overview import create_overview from .overview import create_overview
from .pyramid import main # noqa: F401 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(): def cli_parse_exported_file():
@ -34,7 +34,7 @@ def cli_parse_exported_file():
with warnings.catch_warnings(action="ignore"): with warnings.catch_warnings(action="ignore"):
sys.stderr.write(f"trying to read '{args.filename}'\n") 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("... OK\n")
sys.stderr.write( sys.stderr.write(
@ -55,13 +55,18 @@ def cli_parse_exported_file():
sys.stderr.write("... OK\n") sys.stderr.write("... OK\n")
sys.stderr.write("Sorting overview\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) 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("... OK\n")
sys.stderr.write("Geting recipients file\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("... OK\n")
sys.stderr.write("Retrieving sheet for export\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("... OK\n")
sys.stderr.write("quick parser test did not find any errors\n")

Loading…
Cancel
Save