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

Reformat

parent a34cdb76
No related branches found
No related tags found
1 merge request!167Prepare release 3.0b0
Pipeline #115097 canceled
include: include:
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/general.yml file: /ci/general.yml
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/prepare/lock.yml file: /ci/prepare/lock.yml
# - project: "AlekSIS/official/AlekSIS" # - project: "AlekSIS/official/AlekSIS"
# file: /ci/test/test.yml # file: /ci/test/test.yml
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/test/lint.yml file: /ci/test/lint.yml
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/test/security.yml file: /ci/test/security.yml
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/build/dist.yml file: /ci/build/dist.yml
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/build/docs.yml file: /ci/build/docs.yml
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: "/ci/deploy/trigger_dist.yml" file: "/ci/deploy/trigger_dist.yml"
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/publish/pypi.yml file: /ci/publish/pypi.yml
- project: "AlekSIS/official/AlekSIS" - project: "AlekSIS/official/AlekSIS"
file: /ci/deploy/pages.yml file: /ci/deploy/pages.yml
...@@ -34,7 +34,6 @@ def test_untis_split_first(): ...@@ -34,7 +34,6 @@ def test_untis_split_first():
def test_untis_split_second(): def test_untis_split_second():
assert untis_split_second("") == [] assert untis_split_second("") == []
assert untis_split_second("a~b~c") == ["a", "b", "c"] assert untis_split_second("a~b~c") == ["a", "b", "c"]
......
...@@ -157,7 +157,10 @@ def import_substitutions( ...@@ -157,7 +157,10 @@ def import_substitutions(
continue continue
if lesson_period: if lesson_period:
(substitution, created,) = chronos_models.LessonSubstitution.objects.get_or_create( (
substitution,
created,
) = chronos_models.LessonSubstitution.objects.get_or_create(
lesson_period=lesson_period, week=week.week, year=week.year lesson_period=lesson_period, week=week.week, year=week.year
) )
...@@ -202,7 +205,10 @@ def import_substitutions( ...@@ -202,7 +205,10 @@ def import_substitutions(
logger.warning(" Skip because missing subject") logger.warning(" Skip because missing subject")
continue continue
(extra_lesson, created,) = ( (
extra_lesson,
created,
) = (
chronos_models.ExtraLesson.objects.select_related(None) chronos_models.ExtraLesson.objects.select_related(None)
.prefetch_related(None) .prefetch_related(None)
.update_or_create( .update_or_create(
......
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