Commit c7061a02 by Chris Dodge

add a command line utility to walk through the course and find common errors

parent ac010795
......@@ -19,12 +19,12 @@ class Command(BaseCommand):
loc = CourseDescriptor.id_to_location(loc_str)
ms = modulestore()
modulestore = modulestore()
# setup a request cache so we don't throttle the DB with all the metadata inheritance requests
ms.request_cache = RequestCache.get_request_cache()
modulestore.request_cache = RequestCache.get_request_cache()
course = ms.get_item(loc, depth=3)
course = modulestore.get_item(loc, depth=3)
err_cnt = 0
def _xlint_metadata(module):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment