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
5457ecdc
Unverified
Commit
5457ecdc
authored
Dec 11, 2017
by
Alex Dusenbery
Committed by
GitHub
Dec 11, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1066 from edx/aed/EDUCATOR-1817
Fix typos and poor code issues from previous commit
parents
8807661b
090ee07a
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 @
5457ecdc
...
@@ -617,13 +617,13 @@ def serialize_training_examples(examples, assessment_el):
...
@@ -617,13 +617,13 @@ def serialize_training_examples(examples, assessment_el):
elif
isinstance
(
answer
,
dict
):
elif
isinstance
(
answer
,
dict
):
parts
=
answer
.
get
(
'parts'
,
[])
parts
=
answer
.
get
(
'parts'
,
[])
elif
isinstance
(
answer
,
list
):
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
=
etree
.
SubElement
(
answer_el
,
'part'
)
part_el
.
text
=
unicode
(
part
.
get
(
'text'
,
u''
))
part_el
.
text
=
unicode
(
part
.
get
(
'text'
,
u''
))
except
:
# excuse the bare-except, looking for more information on EDUCATOR-1817
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
raise
# Options selected from the rubric
# 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