Different approach to RA linking

This commit is contained in:
2020-05-28 21:46:39 +01:00
parent 00226e9c22
commit 4cfd83eeb3
7 changed files with 29 additions and 44 deletions

View File

@@ -102,7 +102,7 @@ class CalendarICS(ICalFeed):
return item.earliest_time
def item_end_datetime(self, item):
if type(item.latest_time) == datetime.date: # Ical end_datetime is non-inclusive, so add a day
if isinstance(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