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

Bug fix

parent 44f26ec6
No related branches found
No related tags found
No related merge requests found
......@@ -292,8 +292,9 @@ class Absence(object):
self.filled = True
print(db_obj.ida)
print(db_obj.typea)
self.type = TYPE_TEACHER if db_obj.typea != 102 else TYPE_ROOM
self.type = TYPE_TEACHER if db_obj.typea != 102 and db_obj.typea != 100 else TYPE_ROOM
if self.type == TYPE_TEACHER:
print("IDA", db_obj.ida)
self.teacher = get_teacher_by_id(db_obj.ida)
else:
self.room = get_room_by_id(db_obj.ida)
......
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