diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index 9e41177f5..9664fc0fa 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -214,11 +214,11 @@ class AnkiExporter(Exporter): for row in self.src.db.execute( "select * from cards where id in " + ids2str(cids) ): - nids[row[1]] = True - data.append(row) # clear flags row = list(row) row[-2] = 0 + nids[row[1]] = True + data.append(row) self.dst.db.executemany( "insert into cards values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", data )