From d76ac0c72abbe11d249053e07ad5fce2a6ff164b Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 2 Oct 2024 15:41:33 +0200 Subject: [PATCH] fixed some parser issues --- budgets/Budget-Vorlage-2024.xlsx | Bin 14805 -> 14806 bytes superx_budget/budget.py | 10 ++++++++-- .../pyramid/templates/overview.jinja2 | 1 - tests/test_budget_parser.py | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/budgets/Budget-Vorlage-2024.xlsx b/budgets/Budget-Vorlage-2024.xlsx index 8716c78af686c64ab9a348f4f9bbdb0f05bf583f..cc6366f35abb6c89ee644f8dfa65fa8e27a97174 100644 GIT binary patch delta 5134 zcmaJ_cQD-Tza=7CLx~M2V6Ji&*U&Jy@}_O7QBU>?+Z_O|%e1 zZ_%PhXR)jA^}fG5ckbLj?lbeu^XKQxIp=fcnKK3(hkc=?x(*{|2%s3Kgn({H7!=K~ zT@9Hw^07WMC>HOcGWq6It67A;?74JOs&%8(oNo4h2zB3b`!LW#m92*!P8bt z_)Z}vTJIde#+o-DjQto%0_^!lWM33KX#PszE$6e!zQt|g@eSDvD%`RfZggn#=89qN zAPLGifD&GUf@rKXM}w>zjFOp^^P7LK=8&uFXfAa^A?m}|W?t{H6zcEA{*Dh~4ZY-l zbl=L@3!R_*9Cm%sM&tA=uob|HrBs2jhShP?KIt5vS$*>zs=n*M3~YbNRba&{AtF^Q zN=@u3=j4Z4x9Z7X239VUH|^waBGIQR(DdSKvgAWf$)4?%*JYpZk^^6;S{Zp&8mYdVgjG(Ba zJx(6bsQ*sL=KYqP3m?{ZpJM{JZCF>no-LlU^DPOOtGX(aOx1d^&d9I;Inve;D3b!H?#AJ2<&-c9#Ci*)9vaEWNAf3kyb z6>t3!BHR_m;Li5Z=2vD?_R<@NDT-wKP#Zn@-J<>l&+Wa?Gy=kM+92eGynOD%Ff3qT zdH1pOAof-7D^A{9!|~e+t_cfLc^8F=OicM6h4{ai5N{?k|D2s4bE51-nX5KvWEi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M$JF=yMw?~f$(ny^ z1t*{rW8k&|k!C1Dd+FK+6ITKHx@ppp2MEkT_Tfz7#m_s4o!attk@X!WwlkkT&XOaE z*4lO>&i1bf{@MT}dsmejh%hk$LWuR_Zx2}Gc1f=_FcI$}J;XI;y0Vtyh`W-Ot##%D z(flCYhRseH&*tg(6iD3x4D8@u=Et<+;||q#dKl_QYKe;J`g?lWY+z8+6;)`D3C6XS z&!Lj|pYgLJ^B?SAv*HD6*?%?>{gTU+jFn=Oe?CK(LZc8>#P4%^qZ>6GV*zO%19}PK zi-3!=)ZX<3kL4N}PgFZ|64zr_Jk+HNTkjF%*;T4VHIQkm#X{Pd8y-MxShI3W&6?b2 z^($KZrJYM;k!j_*DV{TAp5om;XS^3pVd3|*j_ywdqX}>z=UCUGryJoV){vfxJ4F&|tkbUKHJFuFVtFvX{`(4^@(AUoHkR|Q+Ts@Dn(nHj;hf+ewRy207br}%ie?1l=aW~R` zZ9#;Oj1J-dxGi0>N*sTcHzOnVCvL9iG(A;J+@tsE~| Jj`ZJ{{{tb|K-d5P diff --git a/superx_budget/budget.py b/superx_budget/budget.py index 3907070..7ac322f 100644 --- a/superx_budget/budget.py +++ b/superx_budget/budget.py @@ -16,6 +16,8 @@ EXPECTED_TABLE_HEADERS = [ "Rest", ] +EXCEL_LINES_TO_IGNORE = {"stand:", "stand"} + NUM_EXPECTED_HEADERS = len(EXPECTED_TABLE_HEADERS) ExcelRow = namedtuple("ExcelRow", ["row", "data"]) @@ -47,16 +49,20 @@ def _check_table_header(xl_row): raise BudgetParserError(msg) -def _skip_empty_lines(rows): +def _skip_some_lines(rows): for xl_row in rows: first_cell = xl_row.data[0] if is_empty_excel_value(first_cell): continue + if isinstance(first_cell, str): + value = first_cell.strip().lower() + if value in EXCEL_LINES_TO_IGNORE: + continue yield xl_row def _parse_data_table(rows): - for xl_row in _skip_empty_lines(rows): + for xl_row in _skip_some_lines(rows): data = [ strip_excel_value(value) for value in xl_row.data[:NUM_EXPECTED_HEADERS] diff --git a/superx_budget/pyramid/templates/overview.jinja2 b/superx_budget/pyramid/templates/overview.jinja2 index a3dc499..64af997 100644 --- a/superx_budget/pyramid/templates/overview.jinja2 +++ b/superx_budget/pyramid/templates/overview.jinja2 @@ -25,7 +25,6 @@ {% for budget in overview %} - {{budget.budget_data.project_name}} diff --git a/tests/test_budget_parser.py b/tests/test_budget_parser.py index 74edb9d..93a5feb 100644 --- a/tests/test_budget_parser.py +++ b/tests/test_budget_parser.py @@ -12,7 +12,7 @@ def test_check_table_header_raises_error(): def test_skip_empty_lines(): - from superx_budget.budget import ExcelRow, _skip_empty_lines + from superx_budget.budget import ExcelRow, _skip_some_lines rows = [ ExcelRow(0, [""]), @@ -23,7 +23,7 @@ def test_skip_empty_lines(): ExcelRow(5, [""]), ] - result = _skip_empty_lines(rows) + result = _skip_some_lines(rows) assert list(result) == [(1, ["one"]), (4, ["two"])]