mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Made sure utils.timeElapsed doesn't go all decimal on me.
This commit is contained in:
parent
ae3623f49f
commit
a35bf21b4e
@ -91,6 +91,7 @@ def abbrev(strings):
|
|||||||
|
|
||||||
def timeElapsed(elapsed, leadingZeroes=False, years=True, weeks=True,
|
def timeElapsed(elapsed, leadingZeroes=False, years=True, weeks=True,
|
||||||
days=True, hours=True, minutes=True, seconds=True):
|
days=True, hours=True, minutes=True, seconds=True):
|
||||||
|
elapsed = int(elapsed)
|
||||||
assert years or weeks or days or \
|
assert years or weeks or days or \
|
||||||
hours or minutes or seconds, 'One flag must be True'
|
hours or minutes or seconds, 'One flag must be True'
|
||||||
ret = []
|
ret = []
|
||||||
|
Loading…
Reference in New Issue
Block a user