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
6ab6beaa
Commit
6ab6beaa
authored
Apr 10, 2014
by
Filippo Valsorda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Once completed, lock score by checking self.completed
parent
d9423680
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mentoring/mentoring.py
+2
-0
No files found.
mentoring/mentoring.py
View file @
6ab6beaa
...
@@ -148,6 +148,8 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -148,6 +148,8 @@ class MentoringBlock(XBlockWithLightChildren):
elif
completed
and
self
.
next_step
==
self
.
url_name
:
elif
completed
and
self
.
next_step
==
self
.
url_name
:
self
.
next_step
=
self
.
followed_by
self
.
next_step
=
self
.
followed_by
# Once it was completed, lock score
if
not
self
.
completed
:
score
=
sum
(
r
[
1
][
'score'
]
for
r
in
submit_results
)
/
float
(
len
(
submit_results
))
score
=
sum
(
r
[
1
][
'score'
]
for
r
in
submit_results
)
/
float
(
len
(
submit_results
))
self
.
runtime
.
publish
(
self
,
'grade'
,
{
self
.
runtime
.
publish
(
self
,
'grade'
,
{
'value'
:
score
,
'value'
:
score
,
...
...
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