Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
fix medal time string
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnimma committed Apr 21, 2022
1 parent 3f4cc69 commit 2e1d5eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trackmania/tmmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def _parse_to_string(self, time: int) -> str:
_log.debug(f"Parsing {time} to string")

sec, ms = divmod(time, 1000)
min, sec = divmod(time, 60)
min, sec = divmod(sec, 60)

return f"{min:02d}:{sec:02d}.{ms:03d}"
return "%01d:%02d.%03d" % (min, sec, ms)


class Leaderboard:
Expand Down

0 comments on commit 2e1d5eb

Please sign in to comment.