variable format changed
parent
8152d24b29
commit
d9d9fc8ef0
|
@ -1674,8 +1674,8 @@ class Admin:
|
||||||
)
|
)
|
||||||
|
|
||||||
for group in madd:
|
for group in madd:
|
||||||
cohort = [c for c in cohorts if c["name"] == group]
|
cohort = [c for c in cohorts if c["name"] == group][0]
|
||||||
self.moodle.add_user_to_cohort(internaluser["moodle_id"], cohort[0]["id"])
|
self.moodle.add_user_to_cohort(internaluser["moodle_id"], cohort["id"])
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue