From 5278b3c2bbeeb5ca0559dcb2f5565f63051f73a8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 21 Apr 2011 11:28:37 +0900 Subject: [PATCH] make sure due is converted to int on upgrade --- anki/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/storage.py b/anki/storage.py index 70e1cd2a5..f0c92b430 100644 --- a/anki/storage.py +++ b/anki/storage.py @@ -252,7 +252,7 @@ when 0 then 1 when 1 then 2 when 2 then 0 else type end), -due, cast(interval as int), +cast(due as int), cast(interval as int), cast(factor*1000 as int), reps, noCount, 0, 0, 0, "" from cards2 order by created""") db.execute("drop table cards2")