utilities.py: Fix formatting for less than a minute

This commit is contained in:
Mykola Grymalyuk
2023-10-15 00:37:40 -06:00
parent 7c23220416
commit 2ec63ce006

View File

@@ -60,8 +60,8 @@ def seconds_to_readable_time(seconds) -> str:
seconds = int(seconds)
time = ""
if seconds == 0:
return "0m "
if 0 <= seconds < 60:
return "Less than a minute "
if seconds < 0:
return "Indeterminate time "