From 73e7563079b5434fd28f9e0b02715e1fcff6c171 Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Sun, 6 Feb 2022 21:48:12 +0100
Subject: [PATCH] Do not ignore substitutions with set comment

---
 CHANGELOG.rst                                            | 6 ++++++
 aleksis/apps/untis/util/mysql/importers/substitutions.py | 1 +
 2 files changed, 7 insertions(+)

diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 10169c4..bcc864f 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 a7202ef..308ee48 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
 
-- 
GitLab