Commit 64b9dd86 by Bill Filler

remove uneeded calculate_ratio method

parent 0fc15978
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment