Commit 785c75e4 by Calen Pennington

Be consistent with the metadata key name for the data directory

parent f32ca94d
...@@ -44,7 +44,7 @@ def export_to_github(course, commit_message, author_str=None): ...@@ -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). and push to github (if MITX_FEATURES['GITHUB_PUSH'] is True).
If author_str is specified, uses it in the commit. 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) fs = OSFS(repo_path)
xml = course.export_to_xml(fs) xml = course.export_to_xml(fs)
......
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