Skip to content

Commit

Permalink
Connector Report: remove divide by 100 (#31532)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnchrch authored Oct 18, 2023
1 parent ffdd688 commit 4670a46
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ def test_badge_html(test_summary_url: str) -> str:


def internal_level_html(level_value: float) -> str:
level = level_value / 100

# remove trailing zeros
level = f"{level:.2f}".rstrip("0").rstrip(".")
# cast to int to remove decimal places
level = int(level_value)

return f"Level <b>{level}</b>"

Expand Down

0 comments on commit 4670a46

Please sign in to comment.