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

Bug fix for substitutions

parent 9745e64d
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ def get_lesson_element_by_id_and_teacher(lesson_id, teacher, hour=None, weekday=
try:
lesson = get_lesson_by_id(lesson_id)
except Exception:
return None
return None, None
el = None
i = 0
print(lesson.elements)
......
......@@ -83,8 +83,7 @@ class Substitution(object):
self.teacher_new = None
self.lesson_element, self.room_old = get_lesson_element_by_id_and_teacher(self.lesson_id, self.teacher_old,
self.lesson,
self.date.weekday() + 1)
self.lesson, self.date.weekday() + 1)
# print(self.lesson)
print(self.room_old)
# Subject
......
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