Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5f473f76
Commit
5f473f76
authored
Aug 16, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small features in xml wrangling commands
parent
317e2c34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
lms/djangoapps/courseware/management/commands/metadata_to_json.py
+4
-1
No files found.
lms/djangoapps/courseware/management/commands/metadata_to_json.py
View file @
5f473f76
...
...
@@ -60,7 +60,10 @@ def get_metadata(course):
queue
=
[
course
]
while
len
(
queue
)
>
0
:
node
=
queue
.
pop
()
d
[
policy_key
(
node
.
location
)]
=
node_metadata
(
node
)
meta
=
node_metadata
(
node
)
# Don't output empty policy for things with no metadata
if
len
(
meta
)
>
0
:
d
[
policy_key
(
node
.
location
)]
=
meta
# want to print first children first, so put them at the end
# (we're popping from the end)
queue
.
extend
(
reversed
(
node
.
get_children
()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment