mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Fix space in readable time
This commit is contained in:
parent
22b0e3ba35
commit
9fb228c48c
1 changed files with 4 additions and 4 deletions
|
|
@ -19,17 +19,17 @@ def get_readable_time(seconds: int) -> str:
|
|||
(days, remainder) = divmod(seconds, 86400)
|
||||
days = int(days)
|
||||
if days != 0:
|
||||
result += f"{days} d "
|
||||
result += f"{days}d "
|
||||
(hours, remainder) = divmod(remainder, 3600)
|
||||
hours = int(hours)
|
||||
if hours != 0:
|
||||
result += f"{hours} h "
|
||||
result += f"{hours}h "
|
||||
(minutes, seconds) = divmod(remainder, 60)
|
||||
minutes = int(minutes)
|
||||
if minutes != 0:
|
||||
result += f"{minutes} m "
|
||||
result += f"{minutes}m "
|
||||
seconds = int(seconds)
|
||||
result += f"{seconds} s "
|
||||
result += f"{seconds}s "
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue