variable format changed

merge-requests/16/head
elena 2022-08-05 09:43:58 +02:00 committed by Evilham
parent 77342f6e8a
commit 5c3967cbe6
No known key found for this signature in database
GPG Key ID: AE3EE30D970886BF
1 changed files with 2 additions and 2 deletions

View File

@ -1681,8 +1681,8 @@ class Admin:
)
for group in madd:
cohort = [c for c in cohorts if c["name"] == group]
self.moodle.add_user_to_cohort(internaluser["moodle_id"], cohort[0]["id"])
cohort = [c for c in cohorts if c["name"] == group][0]
self.moodle.add_user_to_cohort(internaluser["moodle_id"], cohort["id"])
return True