Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Untis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Untis
Commits
11af6a84
Commit
11af6a84
authored
5 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
move drive
parent
88c62bb0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biscuit/apps/untis/drive.py
+22
-0
22 additions, 0 deletions
biscuit/apps/untis/drive.py
biscuit/apps/untis/parse.py
+0
-21
0 additions, 21 deletions
biscuit/apps/untis/parse.py
with
22 additions
and
21 deletions
biscuit/apps/untis/drive.py
0 → 100644
+
22
−
0
View file @
11af6a84
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
This diff is collapsed.
Click to expand it.
biscuit/apps/untis/parse.py
+
0
−
21
View file @
11af6a84
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment