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

some

parent 92b5aa4d
No related branches found
No related tags found
No related merge requests found
......@@ -290,12 +290,11 @@ class Absence(object):
def create(self, db_obj):
self.filled = True
# print(db_obj.ida)
print(db_obj.ida)
print(db_obj.typea)
self.type = TYPE_TEACHER if db_obj.typea != 102 else TYPE_ROOM
if self.type == TYPE_TEACHER:
self.teacher = get_teacher_by_id(db_obj.ida)
else:
self.room = get_room_by_id(db_obj.ida)
self.from_date = untis_date_to_date(db_obj.datefrom)
......
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