From 1c1ad88973f205c8194d059e022032dd84a35d85 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 17 Mar 2011 09:35:15 +0900 Subject: [PATCH] fix setting of gid and ordinal on import --- anki/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/storage.py b/anki/storage.py index 19358ee19..275a279fb 100644 --- a/anki/storage.py +++ b/anki/storage.py @@ -245,7 +245,7 @@ def _upgradeSchema(db): cardmap = dict(db.all("select id, rowid from cards2")) # move back, preserving new ids db.execute(""" -insert into cards select rowid, factId, cardModelId, 1, cast(created as int), +insert into cards select rowid, factId, 1, ordinal, cast(created as int), cast(modified as int), relativeDelay, type, due, cast(interval as int), cast(factor*1000 as int), reps, successive, noCount, 0, 0, 0, "" from cards2 order by created""")