From 0dceb0ce221515c99a74ffc9405f17dafed43f44 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 15 May 2013 23:37:27 +0900 Subject: [PATCH] round() doesn't convert to int --- anki/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/utils.py b/anki/utils.py index 238a86fb6..3315225fd 100644 --- a/anki/utils.py +++ b/anki/utils.py @@ -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: