Created
August 7, 2015 20:25
-
-
Save macdiesel/5e55b006ecc08b456c51 to your computer and use it in GitHub Desktop.
Select unique courses from edx courseware modulestore.active_versions
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
result = db.modulestore.active_versions.aggregate( | |
[ | |
{"$group": { "_id": { course: "$course", org: "$org", run: "$run" } } } | |
] | |
); | |
printjson(result.toArray()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment