Skip to content
Snippets Groups Projects
Commit 11af6a84 authored by Julian's avatar Julian
Browse files

move drive

parent 88c62bb0
No related branches found
No related tags found
No related merge requests found
from .api import *
def build_drive():
odrive = {
"teachers": get_all_teachers(),
"rooms": get_all_rooms(),
"classes": get_all_classes(),
"subjects": get_all_subjects(),
"corridors": get_all_corridors(),
}
drive = {}
for key, value in odrive.items():
drive[key] = {}
for el in value:
id = el.id
drive[key][id] = el
return drive
drive = build_drive()
\ No newline at end of file
......@@ -112,27 +112,6 @@ from .api import *
from .api_helper import untis_split_third
def build_drive():
odrive = {
"teachers": get_all_teachers(),
"rooms": get_all_rooms(),
"classes": get_all_classes(),
"subjects": get_all_subjects(),
"corridors": get_all_corridors(),
}
drive = {}
for key, value in odrive.items():
drive[key] = {}
for el in value:
id = el.id
drive[key][id] = el
return drive
drive = build_drive()
def parse():
global drive
......
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