From 1d9eaa50b899ff4170761d791bdba5d44f20a0ef Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 2 Aug 2023 14:47:30 -0700 Subject: [PATCH] add print() for each JSON file written as a kind of progress bar --- src/budget_sync/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/budget_sync/main.py b/src/budget_sync/main.py index a5ec9fa..5f2d7fc 100644 --- a/src/budget_sync/main.py +++ b/src/budget_sync/main.py @@ -69,8 +69,8 @@ def main(): write_budget_markdown(budget_graph, args.output_dir) write_budget_csv(budget_graph, args.output_dir) summarize_milestones(budget_graph) - print("```") # for using the output as markdown json_milestones(budget_graph, args.comments, args.output_dir) + print("```") # for using the output as markdown def print_markdown_for_person(budget_graph: BudgetGraph, config: Config, @@ -221,6 +221,7 @@ def json_milestones(budget_graph: BudgetGraph, add_comments: bool, output_file = output_dir / f"report.{milestone.identifier}.json" output_file.write_text(json.dumps(d, indent=2), encoding="utf-8") + print(f"wrote JSON for {milestone.identifier}") if __name__ == "__main__": -- 2.30.2