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

Fix import of supervision substitutions

parent e2b11be6
No related branches found
No related tags found
1 merge request!212Fix import of supervision substitutions
Pipeline #195541 failed
......@@ -236,7 +236,7 @@ def import_substitutions(
# Supervision
area_ref = supervision_areas_ref[sub.corridor_id]
possible_supervisions = area_ref["supervisions"][weekday][period]
possible_supervisions = area_ref["supervisions"].get(weekday, {}).get(period, [])
supervision = None
for possible_supervision in possible_supervisions:
......
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