Loading muffin/budget_plan/BudgetPlanLoader.py +3 −3 Original line number Diff line number Diff line import csv import re import subprocess from pathlib import Path from collections.abc import Sequence, Iterable Loading @@ -22,11 +23,10 @@ def _parse_budgetary_item_row(row: Sequence[str]) -> BudgetaryItem: def _is_combined_row(row: Sequence[str]) -> bool: return row[0] and all(not row[i] for i in range(1, len(row))) return row[0] and all(not row[i] for i in range(1, len(row))) and row[0][0].isdigit() def _parse_combined_row(row: Sequence[str]) -> ...: print(row) def _parse_combined_row(row: Sequence[str]) -> tuple[str, str]: lines = row[0].split("\n") return (lines[0][0], lines[0][1:]) # TODO Loading Loading
muffin/budget_plan/BudgetPlanLoader.py +3 −3 Original line number Diff line number Diff line import csv import re import subprocess from pathlib import Path from collections.abc import Sequence, Iterable Loading @@ -22,11 +23,10 @@ def _parse_budgetary_item_row(row: Sequence[str]) -> BudgetaryItem: def _is_combined_row(row: Sequence[str]) -> bool: return row[0] and all(not row[i] for i in range(1, len(row))) return row[0] and all(not row[i] for i in range(1, len(row))) and row[0][0].isdigit() def _parse_combined_row(row: Sequence[str]) -> ...: print(row) def _parse_combined_row(row: Sequence[str]) -> tuple[str, str]: lines = row[0].split("\n") return (lines[0][0], lines[0][1:]) # TODO Loading