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

Import extra lessons and events as current changes

parent cafb169b
No related branches found
No related tags found
1 merge request!194Resolve "Show imported extra lessons and events in substitutions table"
Pipeline #194007 failed
......@@ -158,6 +158,7 @@ def import_absences(
datetime_end=affected_event["DTEND"].dt,
defaults=dict(
cancelled=True,
current_change=True,
slot_number_start=ref_object.slot_number_start,
slot_number_end=ref_object.slot_number_end,
),
......
......@@ -117,6 +117,7 @@ def import_events(
"slot_number_start": slot_start.period,
"slot_number_end": slot_end.period,
"cancelled": False,
"current_change": True,
},
)
......
......@@ -169,6 +169,7 @@ def import_substitutions(
"comment": comment,
"slot_number_start": lesson.slot_start.period,
"slot_number_end": lesson.slot_end.period,
"current_change": True,
},
)
......@@ -215,6 +216,7 @@ def import_substitutions(
"comment": comment,
"slot_number_start": slot.period,
"slot_number_end": slot.period,
"current_change": True,
},
)
)
......
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