From: Nelson Elhage Date: Tue, 9 Feb 2010 00:42:45 +0000 (-0500) Subject: Remove afarrell and kyoki as punting. X-Git-Url: https://projects.mako.cc/source/iron-blogger/commitdiff_plain/e1ebd5c9544ef58bb29c9b9e68b469e6b2d3e60f?hp=c28c6d1bc6aca1c233a543095e2942e73021572e Remove afarrell and kyoki as punting. --- diff --git a/bloggers.yml b/bloggers.yml index f908c1b..db0c206 100644 --- a/bloggers.yml +++ b/bloggers.yml @@ -6,6 +6,7 @@ afarrell: links: - ['10,000 Hours', 'http://afarrell.scripts.mit.edu/blog/', 'http://afarrell.scripts.mit.edu/blog/?feed=rss2'] start: 12/28 + end: 02/01/2010 broder: links: - ["\u03B8: The nerd's angle", 'http://ebroder.net/', 'http://ebroder.net/feed/atom/'] @@ -90,6 +91,7 @@ kyoki: links: - [The World's a Stage, 'http://kyoki.scripts.mit.edu/blog/', 'http://kyoki.scripts.mit.edu/blog/?feed=rss2'] start: 12/28 + end: 02/01/2010 laura47: links: - [LAURA, 'http://lauraboylan.blogspot.com/', 'http://lauraboylan.blogspot.com/feeds/posts/default'] diff --git a/render.py b/render.py index 478c44c..dc4ad3d 100755 --- a/render.py +++ b/render.py @@ -40,6 +40,7 @@ def render_template(path, week=None): u.username = un u.links = rec['links'] u.start = rec['start'] + u.end = rec.get('end') u.weeks = report.get(un, []) userlist.append(u) @@ -51,6 +52,9 @@ def render_template(path, week=None): for u in userlist: user_start = parse(u.start, default=START) + if u.end and parse(u.end, default=START) <= week_start: + continue + if user_start > week_start: skip.append(u) elif len(u.weeks) <= week or not u.weeks[week]: