Created
February 26, 2015 15:41
-
-
Save clintonb/7617e2d618625ce21743 to your computer and use it in GitHub Desktop.
Script to print all course IDs and the instance type of the course ID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment