Update utils.py
Changes only effect time_format. Line 302 - Removed seconds_str. Superfluous. Line 303 - Provides minutes_str a default value which remains if value is below lowest descriptor. Previously if seconds was below a minute style 2 would return absolutely nothing.
This commit is contained in:
parent
961e94f118
commit
23dbdb4570
1 changed files with 3 additions and 1 deletions
|
|
@ -299,7 +299,9 @@ def time_format(seconds, style=0):
|
||||||
"""
|
"""
|
||||||
Full-detailed, long-winded format. We ignore seconds.
|
Full-detailed, long-winded format. We ignore seconds.
|
||||||
"""
|
"""
|
||||||
days_str = hours_str = minutes_str = seconds_str = ''
|
days_str = hours_str = ''
|
||||||
|
minutes_str = '0 minutes'
|
||||||
|
|
||||||
if days > 0:
|
if days > 0:
|
||||||
if days == 1:
|
if days == 1:
|
||||||
days_str = '%i day, ' % days
|
days_str = '%i day, ' % days
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue