Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Get the courses from modulestore
- from xmodule.modulestore.django import modulestore
- courses = modulestore().get_courses()
- # Loop through the ids and print the IDs and types
- for course in courses:
- print "{}, {}".format(course.id, type(course.id))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement