Undoing mistaken date correct.

This commit is contained in:
Samuel Clay 2016-11-14 08:18:31 -08:00
parent 982d1c9589
commit 9f64fcb572

View file

@ -69,7 +69,7 @@ def _extract_date_tuples(date):
return parsed_date, date_tuple, today_tuple, yesterday_tuple
def pre_process_story(entry, encoding):
publish_date = entry.get('published_parsed') or entry.get('published_parsed')
publish_date = entry.get('published_parsed') or entry.get('updated_parsed')
if publish_date:
publish_date = datetime.datetime(*publish_date[:6])
if not publish_date and entry.get('published'):