mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02: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)
|
||||
time = convertSecondsTo(time, type)
|
||||
if not point:
|
||||
time = round(time)
|
||||
time = int(round(time))
|
||||
if short:
|
||||
fmt = shortTimeFmt(type)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue