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

Undo wrong change in absence importer

parent 2c078013
No related branches found
No related tags found
1 merge request!157Undo wrong change in absence importer
Pipeline #87048 passed
......@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Fixed
~~~~~
* Importer failed sometimes on progressing absences.
`2.3.2`_ - 2022-09-01
---------------------
......
......@@ -183,6 +183,5 @@ def import_absences(
if a.import_ref_untis and a.import_ref_untis not in existing_absences:
logger.info("Absence {} deleted".format(a.id))
a.delete()
LessonSubstitution.objects.filter(absence_ref_untis=a.import_ref_untis).delete()
return ref, created_substitutions
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