diff --git a/common/bulk_import.py b/common/bulk_import.py index 5671ed1f..76c1d119 100644 --- a/common/bulk_import.py +++ b/common/bulk_import.py @@ -8,7 +8,7 @@ from typing import List, Dict, Generator import traceback -from .inbus.dto import ConcreteActivity +from .inbus.dto import ConcreteActivity, ConcreteActivityId class ImportException(Exception): @@ -90,7 +90,9 @@ def run( class_in_db[c].save() # Students - students_in_class = inbus.students_in_concrete_activity(ca.concreteActivityId) + students_in_class = inbus.students_in_concrete_activity( + ConcreteActivityId(ca.concreteActivityId) + ) for student in students_in_class: login = student.login.upper()