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
64b9dd86
Commit
64b9dd86
authored
Dec 14, 2017
by
Bill Filler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove uneeded calculate_ratio method
parent
0fc15978
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
openedx/core/lib/gating/api.py
+0
-7
No files found.
openedx/core/lib/gating/api.py
View file @
64b9dd86
...
...
@@ -406,10 +406,3 @@ def _get_subsection_percentage(subsection_grade):
Returns the percentage value of the given subsection_grade.
"""
return
subsection_grade
.
percent_graded
*
100.0
def
_calculate_ratio
(
earned
,
possible
):
"""
Returns the percentage of the given earned and possible values.
"""
return
float
(
earned
)
/
float
(
possible
)
if
possible
else
0.0
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