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:
CloudKeeper1 2016-03-27 23:18:40 +11:00 committed by Griatch
parent 961e94f118
commit 23dbdb4570

View file

@ -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