feat(canvas): remove sortable_name deps

This commit is contained in:
张泊明518370910136 2025-02-19 22:33:44 -05:00
parent 5b7a102115
commit 179c1e0649
GPG Key ID: CA088E6D9284F870

View File

@ -40,7 +40,7 @@ class Canvas:
patch_student(student) patch_student(student)
for student in self.course.get_users(enrollment_type=types) for student in self.course.get_users(enrollment_type=types)
] ]
for attr in ["login_id", "sortable_name", "name"]: for attr in ["login_id", "name"]:
if not hasattr(self.students[0], attr): if not hasattr(self.students[0], attr):
raise Exception( raise Exception(
f"Unable to gather students' {attr}, please contact the Canvas site admin" f"Unable to gather students' {attr}, please contact the Canvas site admin"