From 23dbdb45703d186863f7d60a1b680f05b8ee5334 Mon Sep 17 00:00:00 2001 From: CloudKeeper1 Date: Sun, 27 Mar 2016 23:18:40 +1100 Subject: [PATCH] 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. --- evennia/utils/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evennia/utils/utils.py b/evennia/utils/utils.py index 1e5cc1d868..f777b6af8e 100644 --- a/evennia/utils/utils.py +++ b/evennia/utils/utils.py @@ -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