diff --git a/biscuit/apps/untis/parse.py b/biscuit/apps/untis/parse.py index 482f0e6716b050a0f18face1f4a5d93a4ad23a32..be987c621cd6c07265f6fa1e7e45b2ba6d3a7529 100755 --- a/biscuit/apps/untis/parse.py +++ b/biscuit/apps/untis/parse.py @@ -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) diff --git a/biscuit/apps/untis/sub.py b/biscuit/apps/untis/sub.py index 395c2c5a1687f6ba9189f15c3c7e854d8ea42211..cb195b93b04a49db57db96f0185d254ac7bb3eb9 100644 --- a/biscuit/apps/untis/sub.py +++ b/biscuit/apps/untis/sub.py @@ -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