From: Nelson Elhage Date: Tue, 23 Mar 2010 19:02:03 +0000 (-0400) Subject: Update for last week X-Git-Url: https://projects.mako.cc/source/iron-blogger/commitdiff_plain/b60b22c20ab2666492cad025c5c3cb0e1b04d03f?hp=59e1329132280cda885b656d76b42354349a8e4b Update for last week --- diff --git a/bloggers.yml b/bloggers.yml index 9edefdc..bffad7d 100644 --- a/bloggers.yml +++ b/bloggers.yml @@ -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 ca38aae..f10393b 100644 --- a/ledger +++ b/ledger @@ -427,3 +427,39 @@ 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 diff --git a/render.py b/render.py index dc4ad3d..8cda0d5 100755 --- 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)