Skip to content

Commit

Permalink
fix: round decimal to 2 places
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaing committed Jan 31, 2023
1 parent 3225db6 commit 9763a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def __repr__(self) -> str:

def calculateSuccessRate(self):
success = self.total - (self.failed + self.errors)
self.successRate = round(success * 100 / self.total)
if self.successRate == 100:
self.successRate = round(success * 100 / self.total, 2)
if self.successRate == 100.0:
self.statusEmoji = ":check_mark:"


Expand Down

0 comments on commit 9763a31

Please sign in to comment.