diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 10169c49b32d079b60dd509887e88dde818ba62b..bcc864f53669c0c10dd729968c4d5c58b9969005 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,12 @@ and this project adheres to `Semantic Versioning`_. Unreleased ---------- +Fixed +~~~~~ + +* With ignoring of incomplete subsitutions enabled, + substitutions which consisted just of a comment were skipped. + `2.1.2`_ - 2022-02-06 --------------------- diff --git a/aleksis/apps/untis/util/mysql/importers/substitutions.py b/aleksis/apps/untis/util/mysql/importers/substitutions.py index a7202efcdc09cc1c9a178cf66c9206a4e83ac798..308ee4868bfe7dde3a6d594ccd6c4a565d014041 100644 --- a/aleksis/apps/untis/util/mysql/importers/substitutions.py +++ b/aleksis/apps/untis/util/mysql/importers/substitutions.py @@ -147,6 +147,7 @@ def import_substitutions( and not teachers and not cancelled and not cancelled_for_teachers + and not comment ): continue