]> projects.mako.cc - iron-blogger/blobdiff - weekly-update.py
fix for a mistake in the punting code
[iron-blogger] / weekly-update.py
index eddb2c170499de152e80e45296eef551ac5ce683..9cd240c0f53b7b6322f6ccaeef7cb478a66c628d 100755 (executable)
@@ -74,7 +74,7 @@ if punt:
         bloggers = yaml.safe_load(b)
     for p in punt:
         if 'end' not in bloggers[p]:
         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)
 
     with open('bloggers.yml','w') as b:
         yaml.safe_dump(bloggers, b)
 

Benjamin Mako Hill || Want to submit a patch?