From 6c944c4318da131bdd65821b7656265faf9fed96 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 19 Jul 2021 22:14:52 +0300 Subject: [PATCH] fix card flag clearance when exporting --- pylib/anki/exporting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 )