From 153c574d64a8b62884cd4a44047068e4e5b8ad61 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 26 Mar 2011 08:36:30 +0900 Subject: [PATCH] fix lastInt and nextInt being switched on upgrade --- anki/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/storage.py b/anki/storage.py index ddbae79b4..b11ad96f9 100644 --- a/anki/storage.py +++ b/anki/storage.py @@ -326,7 +326,7 @@ name, "{}", "{}", ?, "" from models2""", simplejson.dumps( for row in db.execute(""" select cast(time*1000 as int), cardId, ease, reps, -cast(lastInterval as int), cast(nextInterval as int), +cast(nextInterval as int), cast(lastInterval as int), cast(nextFactor*1000 as int), cast(min(thinkingTime, 60)*1000 as int), 1 from reviewHistory"""): row = list(row)