From 8e1ed0dacd9966305f92f1e27f6312f29dd9938e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 15 Sep 2012 09:54:33 +0900 Subject: [PATCH] fix hour cutoff --- anki/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/utils.py b/anki/utils.py index 908250778..524b7515e 100644 --- a/anki/utils.py +++ b/anki/utils.py @@ -73,7 +73,7 @@ def optimalPeriod(time, point, unit): if abs(time) < 60 or unit < 1: type = "seconds" point -= 1 - elif abs(time) < 3599 or unit < 2: + elif abs(time) < 3600 or unit < 2: type = "minutes" elif abs(time) < 60 * 60 * 24 or unit < 3: type = "hours"