diff --git a/problem_builder/mentoring.py b/problem_builder/mentoring.py index aec0530b..22e0feb6 100644 --- a/problem_builder/mentoring.py +++ b/problem_builder/mentoring.py @@ -433,7 +433,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 2e833822..e782bcca 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ # Constants ######################################################### -VERSION = '3.4.12' +VERSION = '3.4.13' # Functions #########################################################