Skip to content
Snippets Groups Projects
Commit 72b0ca65 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Bug fix

Problem: If the start lesson equal to the end lesson, there was no lesson shown
parent b6737879
No related branches found
No related tags found
No related merge requests found
...@@ -168,6 +168,8 @@ def generate_event_table(events): ...@@ -168,6 +168,8 @@ def generate_event_table(events):
if event.from_lesson != event.to_lesson: if event.from_lesson != event.to_lesson:
sub_row.lesson = "{}.-{}.".format(event.from_lesson, event.to_lesson) sub_row.lesson = "{}.-{}.".format(event.from_lesson, event.to_lesson)
else:
sub_row.lesson = "{}.".format(event.from_lesson)
sub_row.classes = format_classes(event.classes) sub_row.classes = format_classes(event.classes)
sub_row.teachers = event.teachers sub_row.teachers = event.teachers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment