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
5c7e6415
Commit
5c7e6415
authored
Nov 05, 2012
by
Vik Paruchuri
Committed by
Victor Shnayder
Nov 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify capa types
parent
79941271
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
common/lib/capa/capa/responsetypes.py
+4
-1
No files found.
common/lib/capa/capa/responsetypes.py
View file @
5c7e6415
...
...
@@ -1867,12 +1867,14 @@ class OpenEndedResponse(LoncapaResponse):
else
:
self
.
initial_display
=
''
grader_type
=
oeparam
.
find
(
'
initial_display
'
)
grader_type
=
oeparam
.
find
(
'
grader_type
'
)
if
grader_type
is
not
None
:
self
.
grader_type
=
grader_type
.
text
else
:
self
.
grader_type
=
'ml'
self
.
answer
=
"None available."
def
get_score
(
self
,
student_answers
):
try
:
# Note that submission can be a file
...
...
@@ -1912,6 +1914,7 @@ class OpenEndedResponse(LoncapaResponse):
# Submit request. When successful, 'msg' is the prior length of the queue
contents
.
update
({
'student_response'
:
submission
})
contents
.
update
({
'grader_type'
:
self
.
grader_type
})
log
.
debug
(
contents
)
(
error
,
msg
)
=
qinterface
.
send_to_queue
(
header
=
xheader
,
body
=
json
.
dumps
(
contents
))
...
...
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