diff --git a/biscuit/apps/untis/util.py b/biscuit/apps/untis/util.py index 7637eb20a88d9ad0af6cfc7324341f2e78bb44eb..f6fde92b5231d4a69380dcbf2cd5e043b0f390f3 100644 --- a/biscuit/apps/untis/util.py +++ b/biscuit/apps/untis/util.py @@ -94,8 +94,8 @@ def untis_import_xml(request: HttpRequest, untis_xml: Union[BinaryIO, str]) -> N subject_abbrev = get_child_node_id(lesson_node, 'lesson_subject')[3:] teacher_short_name = get_child_node_id( lesson_node, 'lesson_teacher')[3:] - group_short_names = [v[3:] for v in get_child_node_id( - lesson_node, 'lesson_classes').split(' ')] + group_short_names = [v for v in get_child_node_id( + lesson_node, 'lesson_classes').split('CL_') if v] effectivebegindate = get_child_node_text( lesson_node, 'effectivebegindate') effectiveenddate = get_child_node_text(lesson_node, 'effectiveenddate')