Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
090ee07a
Commit
090ee07a
authored
Dec 11, 2017
by
Alex Dusenbery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos and poor code issues from previous commit
parent
1b8b8871
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openassessment/xblock/xml.py
+3
-3
No files found.
openassessment/xblock/xml.py
View file @
090ee07a
...
...
@@ -617,13 +617,13 @@ def serialize_training_examples(examples, assessment_el):
elif
isinstance
(
answer
,
dict
):
parts
=
answer
.
get
(
'parts'
,
[])
elif
isinstance
(
answer
,
list
):
par
se
=
answer
par
ts
=
answer
for
part
in
example_dict
.
get
(
'answer'
,
{})
.
get
(
'parts'
,
[])
:
for
part
in
parts
:
part_el
=
etree
.
SubElement
(
answer_el
,
'part'
)
part_el
.
text
=
unicode
(
part
.
get
(
'text'
,
u''
))
except
:
# excuse the bare-except, looking for more information on EDUCATOR-1817
log
.
exception
(
'Error parsing training exa
pm
le:
%
s'
,
example_dict
)
log
.
exception
(
'Error parsing training exa
mp
le:
%
s'
,
example_dict
)
raise
# Options selected from the rubric
...
...
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