interferes with reporting.
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 16 Aug 2023 18:49:03 +0000 (19:49 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 16 Aug 2023 18:49:03 +0000 (19:49 +0100)
Revert "add print() for each JSON file written as a kind of progress bar"

This reverts commit 1d9eaa50b899ff4170761d791bdba5d44f20a0ef.

src/budget_sync/main.py

index 5f2d7fc99e89cc30659472ddfc19c1f1dfabdfe9..a5ec9faec6b136075222f5d7b2060a77e2742eb6 100644 (file)
@@ -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)
-    json_milestones(budget_graph, args.comments, args.output_dir)
     print("```")  # for using the output as markdown
+    json_milestones(budget_graph, args.comments, args.output_dir)
 
 
 def print_markdown_for_person(budget_graph: BudgetGraph, config: Config,
@@ -221,7 +221,6 @@ 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__":