Commit 7a72c101111cd9df8d09c0ca1208b8cd878e3126
1 parent
ab9e873d
Stricter verification of adjacent lessons
Also removed debug echo. Again.
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
parse.py
... | ... | @@ -278,19 +278,18 @@ for day in days: |
278 | 278 | for slot in range(len(SLOTS)): |
279 | 279 | event = days[day][slot] |
280 | 280 | if prevEvent: |
281 | - if prevEvent.shortText == event.shortText: | |
281 | + if prevEvent.longText == event.longText: | |
282 | 282 | prevEvent.feedEndSlot(slot) |
283 | 283 | else: |
284 | 284 | prevEvent.endFeed() |
285 | 285 | events.append(prevEvent) |
286 | - if not prevEvent or (prevEvent and prevEvent.shortText != event.shortText): | |
286 | + if not prevEvent or (prevEvent and prevEvent.longText != event.longText): | |
287 | 287 | event.feedDate(day) |
288 | 288 | event.feedBegSlot(slot) |
289 | 289 | event.feedEndSlot(slot) |
290 | 290 | prevEvent = event |
291 | 291 | prevEvent.endFeed() |
292 | 292 | events.append(prevEvent) |
293 | -print(287, len(events)) | |
294 | 293 | |
295 | 294 | # Creating calendar |
296 | 295 | cal = Calendar() | ... | ... |