mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 02:06:32 +01:00
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.
|
||||
"""
|
||||
days_str = hours_str = minutes_str = seconds_str = ''
|
||||
days_str = hours_str = ''
|
||||
minutes_str = '0 minutes'
|
||||
|
||||
if days > 0:
|
||||
if days == 1:
|
||||
days_str = '%i day, ' % days
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue