buglist = bz.getbugs(bugs)
logging.info("got bugs %s" % args.bug)
for bug in buglist:
- print ("payees", bug.cf_payees_list)
+ print ("payees", bug.id, bug.cf_payees_list)
parsed_toml = toml.loads(bug.cf_payees_list)
print (parsed_toml)
if isinstance(payee, int):
payee = {'amount': payee}
+ modified = False
+
if args.submitted and 'submitted' not in payee:
+ modified = True
d = datetime.strptime(args.submitted, "%Y-%m-%d")
payee['submitted'] = date(d.year, d.month, d.day)
if args.paid and 'paid' not in payee:
+ modified = True
d = datetime.strptime(args.paid, "%Y-%m-%d")
payee['paid'] = date(d.year, d.month, d.day)
+ # skip over not modified
+ if not modified:
+ continue
+
parsed_toml[args.user] = payee
encoder = toml.encoder.TomlPreserveInlineDictEncoder()