]> projects.mako.cc - iron-blogger/blobdiff - weekly-update.py
money from the last event
[iron-blogger] / weekly-update.py
index 8b60e527541e4e2dd9d5a3462491d57a6038db87..9cd240c0f53b7b6322f6ccaeef7cb478a66c628d 100755 (executable)
@@ -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)
 

Benjamin Mako Hill || Want to submit a patch?