fix a final set of areas where today instead of date was causing problems
authorBenjamin Mako Hill <mako@atdot.cc>
Sun, 17 Jun 2012 21:30:27 +0000 (17:30 -0400)
committerBenjamin Mako Hill <mako@atdot.cc>
Sun, 17 Jun 2012 21:30:27 +0000 (17:30 -0400)
weekly-update.py

index f55c69c17fef538f4f887048dcbb743b30936ca4..7a44dffe36cd2115147348f4ef159d177b51e3ec 100755 (executable)
@@ -19,7 +19,6 @@ if args[0] == '-n':
     args = args[1:]
 
 date = args[0]
-today = str(datetime.date.today())
 
 with open('ledger', 'a') as f:
     f.write("\n")
@@ -38,10 +37,10 @@ with open('ledger', 'a') as f:
         if debt < 30: continue
         punt.append(user)
         f.write("""\
-%(today)s Punt
+%(date)s Punt
   Pool:Owed:%(user)s  $-%(debt)s
   User:%(user)s
-""" % {'user': user, 'debt': debt, 'today': today})
+""" % {'user': user, 'debt': debt, 'date': date})
 
 
 if not dry_run:

Benjamin Mako Hill || Want to submit a patch?