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

Merge branch '28-skip-extra-lessons-without-a-subject' into 'master'

Resolve "Skip extra lessons without a subject"

Closes #28

See merge request !87
parents 704bfc48 e4060943
No related branches found
No related tags found
1 merge request!87Resolve "Skip extra lessons without a subject"
Pipeline #33656 failed
......@@ -14,6 +14,11 @@ Changed
* Wrap all imports in complete revisions to make it possible to undo them completely and to track changes correctly.
Fixed
~~~~~
* Skip extra lessons without a subject.
`2.0rc2`_ - 2021-07-30
----------------------
......
......@@ -180,6 +180,10 @@ def import_substitutions(
if not teacher_new and not teacher_old:
teachers = []
if not subject:
logger.warning(" Skip because missing subject")
continue
(extra_lesson, created,) = (
chronos_models.ExtraLesson.objects.select_related(None)
.prefetch_related(None)
......
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