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

This commit is contained in:
Chris Dodge
2013-04-04 10:20:31 -04:00
parent ac01079502
commit c7061a0262

View File

@@ -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):