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

Skip extra lessons without a subject

parent 704bfc48
No related branches found
No related tags found
1 merge request!87Resolve "Skip extra lessons without a subject"
Pipeline #33358 passed
......@@ -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