mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
round() doesn't convert to int
This commit is contained in:
parent
47e7f28779
commit
0dceb0ce22
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ def fmtTimeSpan(time, pad=0, point=0, short=False, after=False, unit=99):
|
||||||
(type, point) = optimalPeriod(time, point, unit)
|
(type, point) = optimalPeriod(time, point, unit)
|
||||||
time = convertSecondsTo(time, type)
|
time = convertSecondsTo(time, type)
|
||||||
if not point:
|
if not point:
|
||||||
time = round(time)
|
time = int(round(time))
|
||||||
if short:
|
if short:
|
||||||
fmt = shortTimeFmt(type)
|
fmt = shortTimeFmt(type)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue