changed ago.py

This commit is contained in:
russellballestrini 2017-10-14 20:13:21 -04:00
parent c4a62c9690
commit 93c6b1c572

2
ago.py
View file

@ -56,7 +56,7 @@ def human(subject, precision=2, past_tense='{} ago', future_tense='in {}', abbre
if count >= precision: break # met precision
if d[ unit ] == 0: continue # skip 0's
if abbreviate:
abr = 'ms' if unit == 'microsecond' else unit[0]
abr = 'mu' if unit == 'microsecond' else unit[0]
hlist.append('{}{}'.format(d[unit], abr))
else:
s = '' if d[ unit ] == 1 else 's' # handle plurals