]> projects.mako.cc - iron-blogger/commitdiff
Update for last week
authorNelson Elhage <nelhage@ksplice.com>
Tue, 23 Mar 2010 19:02:03 +0000 (15:02 -0400)
committerNelson Elhage <nelhage@ksplice.com>
Tue, 23 Mar 2010 19:02:03 +0000 (15:02 -0400)
bloggers.yml
ledger
render.py

index 9edefdcd61deda8abfafc44e3e55a41c1e1d3df6..bffad7d9fc67c3fab3f047fe694c130f0e0c1f22 100644 (file)
@@ -90,6 +90,7 @@ kasittig:
   links:
   - [Wuthering Snow Mooncrash, 'http://kasittig.scripts.mit.edu/blog/', 'http://kasittig.scripts.mit.edu/blog/?feed=rss2']
   start: 12/21
+  skip: [3/15/2010]
 kcr:
   links:
   - [procrastination diagram, 'http://www.1ts.org/~kcr/', 'http://www.1ts.org/~kcr/index.rss']
diff --git a/ledger b/ledger
index ca38aae68e765ed7df6d4ba7929b8de8634a91aa..f10393bdc43d76052479fdd180a79fbbbc3f1e24 100644 (file)
--- a/ledger
+++ b/ledger
 2010-03-15 Week 11
   User:xavid    $-5
   Pool:Owed:xavid
+2010-03-22 Week 12
+  User:austein    $-5
+  Pool:Owed:austein
+2010-03-22 Week 12
+  User:ccpost    $-5
+  Pool:Owed:ccpost
+2010-03-22 Week 12
+  User:fyrrwulf    $-5
+  Pool:Owed:fyrrwulf
+2010-03-22 Week 12
+  User:geofft    $-5
+  Pool:Owed:geofft
+2010-03-22 Week 12
+  User:keach    $-5
+  Pool:Owed:keach
+2010-03-22 Week 12
+  User:lexrj    $-5
+  Pool:Owed:lexrj
+2010-03-22 Week 12
+  User:nelhage    $-5
+  Pool:Owed:nelhage
+2010-03-22 Week 12
+  User:price    $-5
+  Pool:Owed:price
+2010-03-22 Week 12
+  User:quentin    $-5
+  Pool:Owed:quentin
+2010-03-22 Week 12
+  User:seborn    $-5
+  Pool:Owed:seborn
+2010-03-22 Week 12
+  User:tibbetts    $-5
+  Pool:Owed:tibbetts
+2010-03-22 Week 12
+  User:vinayak    $-5
+  Pool:Owed:vinayak
index dc4ad3d560cd36767802a7b4d3fd346d4d594531..8cda0d52b3808d8bead38e3229242d17b9ca3632 100755 (executable)
--- a/render.py
+++ b/render.py
@@ -41,6 +41,8 @@ def render_template(path, week=None):
         u.links = rec['links']
         u.start = rec['start']
         u.end   = rec.get('end')
+        u.skip  = [(parse(x, default=START) - START).days / 7
+                   for x in rec.get('skip', [])]
         u.weeks = report.get(un, [])
 
         userlist.append(u)
@@ -55,7 +57,9 @@ def render_template(path, week=None):
         if u.end and parse(u.end, default=START) <= week_start:
             continue
 
-        if user_start > week_start:
+        if week in u.skip:
+            pass
+        elif user_start > week_start:
             skip.append(u)
         elif len(u.weeks) <= week or not u.weeks[week]:
             lame.append(u)

Benjamin Mako Hill || Want to submit a patch?