Skip to content
Snippets Groups Projects

Resolve "Classes without teachers break import"

Merged Jonathan Weth requested to merge 32-classes-without-teachers-break-import into master
2 files
+ 6
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -179,7 +179,7 @@ def import_classes(
# Build values
short_name = class_.name[:16]
name = class_.longname if class_.longname else short_name
teacher_ids = untis_split_first(class_.teacherids, int)
teacher_ids = untis_split_first(class_.teacherids, int) if class_.teacherids else []
owners = [teachers_ref[t_id] for t_id in teacher_ids]
import_ref = class_.class_id
Loading