From 5d6210780efe7cb693a3777aa410596ad3b800b2 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 7 May 2021 15:10:17 +0100 Subject: [PATCH] index by bug id --- src/budget_sync/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/budget_sync/main.py b/src/budget_sync/main.py index 5075603..5384205 100644 --- a/src/budget_sync/main.py +++ b/src/budget_sync/main.py @@ -107,9 +107,9 @@ def main(): milestone_headings[milestone] = headings # now we go through the whole "payments" thing again... for payment in payments: - row = milestone_csvs[milestone].get(payment.node.id, None) + row = milestone_csvs[milestone].get(payment.node.bug.id, None) if row is None: - row = {'bug_id': payment.node.id} + row = {'bug_id': payment.node.bug.id} name = str(payment.payee.identifier).replace(" ", "_") row[name+"_amount"] = str(payment.amount) @@ -125,7 +125,7 @@ def main(): row[name+"_paid"] = paid print (row) - milestone_csvs[milestone][payment.node.id] = row + milestone_csvs[milestone][payment.node.bug.id] = row if args.output_dir is not None: with open("%s/csvs.mdwn" % args.output_dir, "w") as f: -- 2.30.2