From 214aa9246b95b4ba1c006d9f2f65289581f1e6d4 Mon Sep 17 00:00:00 2001 From: Jan Gaura Date: Sat, 19 Oct 2024 22:12:42 +0200 Subject: [PATCH] Fix minor Python typing warning --- common/bulk_import.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()