]> projects.mako.cc - iron-blogger/commitdiff
fix for a mistake in the punting code
authorBenjamin Mako Hill <mako@atdot.cc>
Thu, 6 Sep 2012 00:43:33 +0000 (20:43 -0400)
committerBenjamin Mako Hill <mako@atdot.cc>
Thu, 6 Sep 2012 00:43:33 +0000 (20:43 -0400)
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[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?