Skip to content

Commit

Permalink
function docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
thraxil committed Apr 5, 2022
1 parent 8a3c65c commit 6d010d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gradefetcher/gradefetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class DummyTranslationService(object):


def grade_from_list(grades):
"""take a list of integers and calculate grade from them"""
if len(grades) > 1:
total_grade = sum(grades)
grade = int(truediv(total_grade * 100, len(grades)))
Expand Down

0 comments on commit 6d010d8

Please sign in to comment.