Skip to content
Snippets Groups Projects
Commit 593d86c9 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch 'fix/wrongly-added-change' into 'master'

Undo wrong change in absence importer

See merge request AlekSIS/official/AlekSIS-App-Untis!157
parents 2c078013 1263dc98
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