Skip to content

Commit

Permalink
MCKIN-22514 rounding off correctly (#296)
Browse files Browse the repository at this point in the history
* MCKIN-22514 rounding off correctly

* version updated
  • Loading branch information
mudassir-hafeez authored Aug 26, 2020
1 parent ca2004d commit 94fcaed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion problem_builder/mentoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# Constants #########################################################

VERSION = '4.0.6'
VERSION = '4.0.7'

# Functions #########################################################

Expand Down

0 comments on commit 94fcaed

Please sign in to comment.