diff options
| author | 2018-07-23 15:17:54 +0200 | |
|---|---|---|
| committer | 2018-07-23 15:17:54 +0200 | |
| commit | 24c10dfbd1e41fc662f9540d0d293dfc8ee32776 (patch) | |
| tree | e664ad42f373984c1eee895ee22569897edd7437 | |
| parent | Merge branch 'enhancement/detect-bans-in-bigbrother-cog' into 'master' (diff) | |
Fixing a typo in the humanize function that would cause output that looks like 0 years, 0 months, 0 days and 2 hours
| -rw-r--r-- | bot/utils/time.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/time.py b/bot/utils/time.py index ef49c500f..b3f55932c 100644 --- a/bot/utils/time.py +++ b/bot/utils/time.py @@ -45,7 +45,7 @@ def humanize(delta: relativedelta, accuracy: str = "seconds") -> str: # Add the time units that are >0, but stop at accuracy. time_strings = [] for unit, value in units.items(): - if unit: + if value: time_strings.append(_plural_timestring(value, unit)) if unit == accuracy: |