X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/6453bb4008557655500c8c3d42db48014b484c47..7d6ef92de21ab4f0b5699aca9bc846410040c2ef:/weekly-update.py diff --git a/weekly-update.py b/weekly-update.py index 8b60e52..9cd240c 100755 --- a/weekly-update.py +++ b/weekly-update.py @@ -32,7 +32,7 @@ punt = [] with open('ledger', 'a') as f: f.write("\n") for (user, debt) in debts: - if debt < (FINE_SIZE * 6): continue + if debt <= (FINE_SIZE * 6): continue punt.append(user) f.write("""\ %(date)s Punt @@ -74,7 +74,7 @@ if punt: bloggers = yaml.safe_load(b) for p in punt: if 'end' not in bloggers[p]: - bloggers[p]['end'] = date + bloggers[p]['end'] = datetime.date(*map(int, date.split("-"))) with open('bloggers.yml','w') as b: yaml.safe_dump(bloggers, b)