From 9f64fcb5728e613f819ffc4acd2bd4414abfa855 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Mon, 14 Nov 2016 08:18:31 -0800 Subject: [PATCH] Undoing mistaken date correct. --- utils/story_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/story_functions.py b/utils/story_functions.py index c4a9f79c0..269f8d1e5 100644 --- a/utils/story_functions.py +++ b/utils/story_functions.py @@ -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'):