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
009a8c5f
Commit
009a8c5f
authored
Feb 04, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue with passing rubric scores back to controller
parent
bf97a6a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
common/lib/xmodule/xmodule/peer_grading_module.py
+9
-9
No files found.
common/lib/xmodule/xmodule/peer_grading_module.py
View file @
009a8c5f
...
@@ -249,17 +249,17 @@ class PeerGradingModule(XModule):
...
@@ -249,17 +249,17 @@ class PeerGradingModule(XModule):
required
=
set
([
'location'
,
'submission_id'
,
'submission_key'
,
'score'
,
'feedback'
,
'rubric_scores[]'
,
'submission_flagged'
])
required
=
set
([
'location'
,
'submission_id'
,
'submission_key'
,
'score'
,
'feedback'
,
'rubric_scores[]'
,
'submission_flagged'
])
success
,
message
=
self
.
_check_required
(
get
,
required
)
success
,
message
=
self
.
_check_required
(
get
,
required
)
if
not
success
:
if
not
success
:
return
_err_response
(
message
)
return
self
.
_err_response
(
message
)
grader_id
=
self
.
system
.
anonymous_student_id
grader_id
=
self
.
system
.
anonymous_student_id
location
=
get
[
'location'
]
location
=
get
.
get
(
'location'
)
submission_id
=
get
[
'submission_id'
]
submission_id
=
get
.
get
(
'submission_id'
)
score
=
get
[
'score'
]
score
=
get
.
get
(
'score'
)
feedback
=
get
[
'feedback'
]
feedback
=
get
.
get
(
'feedback'
)
submission_key
=
get
[
'submission_key'
]
submission_key
=
get
.
get
(
'submission_key'
)
rubric_scores
=
get
[
'rubric_scores[]'
]
rubric_scores
=
get
.
getlist
(
'rubric_scores[]'
)
submission_flagged
=
get
[
'submission_flagged'
]
submission_flagged
=
get
.
get
(
'submission_flagged'
)
log
.
debug
(
get
)
log
.
debug
(
"GET: {0}"
.
format
(
get
)
)
log
.
debug
(
rubric_scores
)
log
.
debug
(
rubric_scores
)
try
:
try
:
response
=
self
.
peer_gs
.
save_grade
(
location
,
grader_id
,
submission_id
,
response
=
self
.
peer_gs
.
save_grade
(
location
,
grader_id
,
submission_id
,
...
...
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