Return short 0 second string

This commit is contained in:
George Lacey 2021-05-06 08:20:53 +01:00
parent 95644ce883
commit c1d4b26c6c

View File

@ -76,6 +76,9 @@ class Summary(object):
('second', 'sec', 1)] ('second', 'sec', 1)]
if seconds == 0: if seconds == 0:
if short:
return f"0 {increments[-1][1]}s"
else:
return f"0 {increments[-1][0]}s" return f"0 {increments[-1][0]}s"
time_string = "" time_string = ""