From 6a7c67522faf6908a0552b6b0641dccaa2d9649a Mon Sep 17 00:00:00 2001 From: Kashav Madan Date: Thu, 28 Apr 2016 03:05:03 -0400 Subject: [PATCH] Clean up some more --- uoftscrapers/scrapers/events/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uoftscrapers/scrapers/events/__init__.py b/uoftscrapers/scrapers/events/__init__.py index 0ee9e19..61cc510 100644 --- a/uoftscrapers/scrapers/events/__init__.py +++ b/uoftscrapers/scrapers/events/__init__.py @@ -102,7 +102,7 @@ def get_event_doc(url_tail, event_date): if start_date.count(' ') == 1: # year not in start date - start_date = '%s %s' % (start_date, end_date.split(' ')[2]) + start_date = '%s %s' % (start_date, end_date[-4:]) start_date = datetime.strptime(start_date, '%b %d %Y') end_date = datetime.strptime(end_date, '%b %d %Y')