From 099cf318569d932a02179c23ab2dd3c5bc2be568 Mon Sep 17 00:00:00 2001 From: Mudassir Hafeez Date: Mon, 24 Aug 2020 11:40:44 +0000 Subject: [PATCH 1/2] MCKIN-22514 rounding off correctly --- problem_builder/mentoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 8b400f92c99d131e922d036cf36a890f1dcb582a Mon Sep 17 00:00:00 2001 From: Mudassir Hafeez Date: Tue, 25 Aug 2020 10:23:11 +0000 Subject: [PATCH 2/2] version updated --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #########################################################