diff --git apple-school-manager/modules/univention/asm/models/classes.py apple-school-manager/modules/univention/asm/models/classes.py index fd972ec..48cb477 100644 --- apple-school-manager/modules/univention/asm/models/classes.py +++ apple-school-manager/modules/univention/asm/models/classes.py @@ -154,12 +154,12 @@ def from_dn(cls, dn, *args, **kwargs): # type: (AnyStr, *Any, **Any) -> AsmClas instructor_id = teachers[0] instructor_id_2 = teachers[1] instructor_id_3 = teachers[2] - additional_instructor_ids = teachers[3:15] + additional_instructor_ids = teachers[3:] except IndexError: pass - if len(teachers) > 15: + if len(teachers) > : logger.warn( - 'Class %r has more than 15 teachers. Only 15 will be synchronized. This is a limitation of the ' + 'Class %r has more than teachers. Only will be synchronized. This is a limitation of the ' 'Apple School Manager service.', school_class.name) return cls( class_id=school_class.name,