openfun / fun-apps

:warning: DEPRECATED :warning:
Other
15 stars 20 forks source link

🐛(courses) fix update_courses mass command #703

Closed sampaccoud closed 3 years ago

sampaccoud commented 3 years ago

Purpose

Updating only one course and updating all courses did not produce the same result... the difference originates at the fact that:

course = modulestore().get_course(course_key)

and

for course in modulestore().get_courses():
    ...

don't return the same object. Go figure...

Proposal

Since the mass update is failing, I modified it to work on the same object as the specific update.