Be consistent with the metadata key name for the data directory

This commit is contained in:
Calen Pennington
2012-07-15 15:33:01 -04:00
parent 15ac476781
commit 1aba46de55

View File

@@ -44,7 +44,7 @@ def export_to_github(course, commit_message, author_str=None):
and push to github (if MITX_FEATURES['GITHUB_PUSH'] is True).
If author_str is specified, uses it in the commit.
'''
repo_path = settings.DATA_DIR / course.metadata.get('course_dir', course.location.course)
repo_path = settings.DATA_DIR / course.metadata.get('data_dir', course.location.course)
fs = OSFS(repo_path)
xml = course.export_to_xml(fs)