From d8e6f2f9c11124fe59077a2567b3293d2cf35c22 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Sat, 12 Sep 2020 10:25:40 +0100 Subject: [PATCH] Why does this work Bloody overzealous autoformatter... --- RIGS/ical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RIGS/ical.py b/RIGS/ical.py index 3940390b..bd3dfcba 100644 --- a/RIGS/ical.py +++ b/RIGS/ical.py @@ -102,7 +102,7 @@ class CalendarICS(ICalFeed): return item.earliest_time def item_end_datetime(self, item): - if isinstance(item.latest_time, datetime.date): # Ical end_datetime is non-inclusive, so add a day + if type(item.latest_time) == datetime.date: # Ical end_datetime is non-inclusive, so add a day return item.latest_time + datetime.timedelta(days=1) return item.latest_time