Mercurial > daily-edition
changeset 37:193e1387957d
force article urls to start with 'http'
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 03 Jan 2010 12:41:18 -0800 |
parents | 5ab0068cff9d |
children | 946d18e70fcd |
files | publish_edition.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/publish_edition.py Sun Jan 03 12:36:10 2010 -0800 +++ b/publish_edition.py Sun Jan 03 12:41:18 2010 -0800 @@ -109,7 +109,8 @@ 'pubDate': to_date_tuple(article['pub_date'])} for article in articles[author] if (article['pub_date'] > min_date - and article['url'] not in issues['urls']) + and article['url'] not in issues['urls'] + and article['url'].startswith('http')) ] total_potentials += len(potential_articles)