Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
bfff8222
Commit
bfff8222
authored
13 years ago
by
Lyla Fischer
Browse files
Options
Downloads
Patches
Plain Diff
AGH! midterm/final
parent
a49a2fc6
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoapps/courseware/grades.py
+1
-1
1 addition, 1 deletion
djangoapps/courseware/grades.py
with
1 addition
and
1 deletion
djangoapps/courseware/grades.py
+
1
−
1
View file @
bfff8222
...
...
@@ -228,7 +228,7 @@ def grade_summary_6002x(totaled_scores):
midterm_percentage
=
midterm_score
.
earned
*
1.0
/
midterm_score
.
possible
if
'
Midterm
'
in
totaled_scores
else
0
final_score
=
totaled_scores
[
'
Final
'
][
0
]
if
'
Final
'
in
totaled_scores
else
Score
(
'
?
'
,
'
?
'
,
'
?
'
,
True
,
"
?
"
)
final_percentage
=
midterm
_score
.
earned
*
1.0
/
midterm
_score
.
possible
if
'
Final
'
in
totaled_scores
else
0
final_percentage
=
final
_score
.
earned
*
1.0
/
final
_score
.
possible
if
'
Final
'
in
totaled_scores
else
0
if
settings
.
GENERATE_PROFILE_SCORES
:
midterm_score
=
Score
(
random
.
randrange
(
50
,
150
),
150
,
True
,
"
?
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment