fix lastInt and nextInt being switched on upgrade

This commit is contained in:
Damien Elmes 2011-03-26 08:36:30 +09:00
parent 9c1e0befc6
commit 153c574d64

View file

@ -326,7 +326,7 @@ name, "{}", "{}", ?, "" from models2""", simplejson.dumps(
for row in db.execute(""" for row in db.execute("""
select select
cast(time*1000 as int), cardId, ease, reps, 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), cast(nextFactor*1000 as int), cast(min(thinkingTime, 60)*1000 as int),
1 from reviewHistory"""): 1 from reviewHistory"""):
row = list(row) row = list(row)