This commit is contained in:
Kovid Goyal 2008-06-16 11:23:28 -07:00
parent 5ad2c3c802
commit 8cf8b56bcc

View File

@ -109,6 +109,8 @@ class Feed(object):
if id in self.added_articles: if id in self.added_articles:
return return
published = item.get('date_parsed', time.gmtime()) published = item.get('date_parsed', time.gmtime())
if not published:
published = time.gmtime()
self.id_counter += 1 self.id_counter += 1
self.added_articles.append(id) self.added_articles.append(id)