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
32a837e7
Commit
32a837e7
authored
Aug 02, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotfix - fix mistake in capa_problem multiple question problems
parent
b4b77ebd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/lib/capa/capa_problem.py
+2
-2
No files found.
common/lib/capa/capa_problem.py
View file @
32a837e7
...
...
@@ -394,7 +394,7 @@ class LoncapaProblem(object):
response_id
+=
1
answer_id
=
1
inputfields
=
tre
e
.
xpath
(
"|"
.
join
([
'//'
+
response
.
tag
+
'[@id=$id]//'
+
x
for
x
in
(
entry_types
+
solution_types
)]),
inputfields
=
respons
e
.
xpath
(
"|"
.
join
([
'//'
+
response
.
tag
+
'[@id=$id]//'
+
x
for
x
in
(
entry_types
+
solution_types
)]),
id
=
response_id_str
)
for
entry
in
inputfields
:
# assign one answer_id for each entry_type or solution_type
entry
.
attrib
[
'response_id'
]
=
str
(
response_id
)
...
...
@@ -407,7 +407,7 @@ class LoncapaProblem(object):
# get responder answers (do this only once, since there may be a performance cost, eg with externalresponse)
self
.
responder_answers
=
{}
for
response
in
self
.
responders
.
key
s
():
for
(
response
,
responder
)
in
self
.
responders
.
item
s
():
try
:
self
.
responder_answers
[
response
]
=
responder
.
get_answers
()
except
:
...
...
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