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
573ec68a
Commit
573ec68a
authored
Jan 07, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store feedback as dictionary to be parsed later
parent
c2a285e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/lib/xmodule/xmodule/open_ended_module.py
+4
-3
No files found.
common/lib/xmodule/xmodule/open_ended_module.py
View file @
573ec68a
...
...
@@ -215,8 +215,8 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
if
not
new_score_msg
[
'valid'
]:
score_msg
[
'feedback'
]
=
'Invalid grader reply. Please contact the course staff.'
self
.
record_latest_score
(
score_msg
[
'score'
])
self
.
record_latest_post_assessment
(
score_msg
[
'feedback'
]
)
self
.
record_latest_score
(
new_
score_msg
[
'score'
])
self
.
record_latest_post_assessment
(
score_msg
)
self
.
state
=
self
.
POST_ASSESSMENT
return
True
...
...
@@ -385,7 +385,8 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
"""None if not available"""
if
not
self
.
history
:
return
""
return
self
.
_parse_score_msg
(
self
.
history
[
-
1
]
.
get
(
'post_assessment'
,
""
))
feedback_dict
=
self
.
_parse_score_msg
(
self
.
history
[
-
1
]
.
get
(
'post_assessment'
,
""
))
return
feedback_dict
[
'feedback'
]
if
feedback_dict
[
'valid'
]
else
''
def
is_submission_correct
(
self
,
score
):
correct
=
False
...
...
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