Skip to content
Snippets Groups Projects
Commit 48dfdfbb authored by root's avatar root
Browse files

Bug fix 2 for #67

parent 76e67ec3
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -240,7 +240,9 @@ def get_lesson_element_by_id_and_teacher(lesson_id, teacher, hour=None, weekday=
t = time
print(t)
room = None
if t is not None:
if t is not None and len(t.rooms) > i:
print(t.rooms)
print(len(t.rooms))
room = t.rooms[i]
if el is not None:
......
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