Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
b4ef8686
Commit
b4ef8686
authored
Oct 26, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addressed review comments
parent
ea4d14e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
problem_builder/mentoring.py
+4
-4
No files found.
problem_builder/mentoring.py
View file @
b4ef8686
...
...
@@ -647,7 +647,7 @@ class MentoringBlock(BaseMentoringBlock, StudioContainerXBlockMixin, StepParentM
# Save the user's latest score
self
.
runtime
.
publish
(
self
,
'grade'
,
{
'value'
:
self
.
score
.
raw
,
'max_value'
:
1
,
'max_value'
:
self
.
max_score
()
,
})
# Mark this as having used an attempt:
...
...
@@ -714,7 +714,7 @@ class MentoringBlock(BaseMentoringBlock, StudioContainerXBlockMixin, StepParentM
log
.
info
(
u'Last assessment step submitted: {}'
.
format
(
submissions
))
self
.
runtime
.
publish
(
self
,
'grade'
,
{
'value'
:
score
.
raw
,
'max_value'
:
1
,
'max_value'
:
self
.
max_score
()
,
'score_type'
:
'proficiency'
,
})
event_data
[
'final_grade'
]
=
score
.
raw
...
...
@@ -1030,7 +1030,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
@XBlock.json_handler
def
submit
(
self
,
data
,
suffix
=
None
):
"""
Called
this
when the user has submitted the answer[s] for the current step.
Called when the user has submitted the answer[s] for the current step.
"""
# First verify that active_step is correct:
if
data
.
get
(
"active_step"
)
!=
self
.
active_step_safe
:
...
...
@@ -1058,7 +1058,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
score
=
self
.
score
grade_data
=
{
'value'
:
score
.
raw
,
'max_value'
:
1
,
'max_value'
:
self
.
max_score
()
,
}
self
.
runtime
.
publish
(
self
,
'grade'
,
grade_data
)
response_data
[
'grade_data'
]
=
self
.
get_grade
()
...
...
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