fix card flag clearance when exporting

This commit is contained in:
alex 2021-07-19 22:14:52 +03:00
parent fc0035306c
commit 6c944c4318

View File

@ -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
)