]> projects.mako.cc - iron-blogger/commitdiff
fix another bug related to punting and dates
authorBenjamin Mako Hill <mako@atdot.cc>
Sun, 17 Jun 2012 21:25:24 +0000 (17:25 -0400)
committerBenjamin Mako Hill <mako@atdot.cc>
Sun, 17 Jun 2012 21:25:24 +0000 (17:25 -0400)
This led to folks being charged after they were punted (but before the
day that the script was run).

weekly-update.py

index 758bb69910e586c0bde79df814f8756a8f738d14..f55c69c17fef538f4f887048dcbb743b30936ca4 100755 (executable)
@@ -77,7 +77,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'] = today
+            bloggers[p]['end'] = date
     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?