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)
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: