From e1ebd5c9544ef58bb29c9b9e68b469e6b2d3e60f Mon Sep 17 00:00:00 2001 From: Nelson Elhage Date: Mon, 8 Feb 2010 19:42:45 -0500 Subject: [PATCH] Remove afarrell and kyoki as punting. --- bloggers.yml | 2 ++ render.py | 4 ++++ 2 files changed, 6 insertions(+) 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]: -- 2.39.5