a quick hack to display total payments per milestone
[utils.git] / src / budget_sync / main.py
index 2726dbf0457bcf289b056213431c21a625a862f5..e18e07208473f6200edbfaebec6cd03284e5544a 100644 (file)
@@ -37,6 +37,15 @@ def main():
     if args.output_dir is not None:
         write_budget_markdown(budget_graph, args.output_dir)
 
+    # quick hack to display total payment amounts per-milestone
+    for milestone, payments in budget_graph.milestone_payments.items():
+        print (milestone)
+        print ()
+        total = 0
+        for payment in payments:
+            print("\t", payment)
+            total += payment.amount
+        print ("\t", total)
 
 if __name__ == "__main__":
     main()