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
c4b1c8d0
Commit
c4b1c8d0
authored
Jan 09, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct peer grading score parsing
parent
c267efb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
common/lib/xmodule/xmodule/open_ended_module.py
+3
-0
No files found.
common/lib/xmodule/xmodule/open_ended_module.py
View file @
c4b1c8d0
...
@@ -31,6 +31,7 @@ from capa.util import *
...
@@ -31,6 +31,7 @@ from capa.util import *
import
openendedchild
import
openendedchild
from
mitxmako.shortcuts
import
render_to_string
from
mitxmako.shortcuts
import
render_to_string
from
numpy
import
median
from
datetime
import
datetime
from
datetime
import
datetime
...
@@ -436,9 +437,11 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
...
@@ -436,9 +437,11 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
}
}
feedback_items
.
append
(
self
.
_format_feedback
(
new_score_result
))
feedback_items
.
append
(
self
.
_format_feedback
(
new_score_result
))
feedback
=
""
.
join
(
feedback_items
)
feedback
=
""
.
join
(
feedback_items
)
score
=
median
(
score_result
[
'score'
])
else
:
else
:
#This is for instructor and ML grading
#This is for instructor and ML grading
feedback
=
self
.
_format_feedback
(
score_result
)
feedback
=
self
.
_format_feedback
(
score_result
)
self
.
submission_id
=
score_result
[
'submission_id'
]
self
.
submission_id
=
score_result
[
'submission_id'
]
self
.
grader_id
=
score_result
[
'grader_id'
]
self
.
grader_id
=
score_result
[
'grader_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