diff --git a/parse.py b/parse.py index 58fdef0..0d9b4fd 100755 --- a/parse.py +++ b/parse.py @@ -278,19 +278,18 @@ for day in days: for slot in range(len(SLOTS)): event = days[day][slot] if prevEvent: - if prevEvent.shortText == event.shortText: + if prevEvent.longText == event.longText: prevEvent.feedEndSlot(slot) else: prevEvent.endFeed() events.append(prevEvent) - if not prevEvent or (prevEvent and prevEvent.shortText != event.shortText): + if not prevEvent or (prevEvent and prevEvent.longText != event.longText): event.feedDate(day) event.feedBegSlot(slot) event.feedEndSlot(slot) prevEvent = event prevEvent.endFeed() events.append(prevEvent) -print(287, len(events)) # Creating calendar cal = Calendar() -- libgit2 0.21.2