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

Filter supervisions by term

Close #16
parent f2946c80
No related branches found
No related tags found
1 merge request!47Resolve "Filter by term while importing supervisions"
Pipeline #4927 passed
......@@ -355,6 +355,10 @@ def import_supervision_areas(
# Split more and get teacher id
raw_supervision_2 = raw_supervision.split("~")
teacher_id = int(raw_supervision_2[1])
term_id = int(raw_supervision_2[0])
if term_id != validity_range.import_ref_untis:
continue
if teacher_id in teachers_ref:
# Get weekday, period after break and teacher
......
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