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
No related merge requests found
...@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_. ...@@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_.
Unreleased Unreleased
---------- ----------
Fixed
~~~~~
* Importer failed sometimes on progressing absences.
`2.3.2`_ - 2022-09-01 `2.3.2`_ - 2022-09-01
--------------------- ---------------------
......
...@@ -183,6 +183,5 @@ def import_absences( ...@@ -183,6 +183,5 @@ def import_absences(
if a.import_ref_untis and a.import_ref_untis not in existing_absences: if a.import_ref_untis and a.import_ref_untis not in existing_absences:
logger.info("Absence {} deleted".format(a.id)) logger.info("Absence {} deleted".format(a.id))
a.delete() a.delete()
LessonSubstitution.objects.filter(absence_ref_untis=a.import_ref_untis).delete()
return ref, created_substitutions 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