diff --git a/problem_builder/mentoring.py b/problem_builder/mentoring.py index c1f0ebcb..38e57652 100644 --- a/problem_builder/mentoring.py +++ b/problem_builder/mentoring.py @@ -932,7 +932,7 @@ def score(self): return Score( float(score), - int((Decimal(score) * 100).quantize(Decimal('1.'), rounding=ROUND_HALF_UP)), + int(Decimal(score * 100).quantize(Decimal('1.'), rounding=ROUND_HALF_UP)), correct, incorrect, partially_correct diff --git a/setup.py b/setup.py index 1fac75d5..34b37790 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ # Constants ######################################################### -VERSION = '4.0.6' +VERSION = '4.0.7' # Functions #########################################################