Skip to content

Commit

Permalink
Fix minor Python typing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
geordi committed Oct 19, 2024
1 parent 6a221ed commit 214aa92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/bulk_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 214aa92

Please sign in to comment.