mirror of
https://github.com/ankitects/anki.git
synced 2026-01-05 18:13:56 -05:00
Merge 0c77318dfc into 8f2144534b
This commit is contained in:
commit
d374ef7190
1 changed files with 3 additions and 1 deletions
|
|
@ -1643,7 +1643,9 @@ title="{}" {}>{}</button>""".format(
|
|||
existed = os.path.exists(path)
|
||||
with open(path, "ab") as f:
|
||||
if not existed:
|
||||
f.write(b"nid\tmid\tfields\n")
|
||||
f.write(b"#guid column:1\n")
|
||||
f.write(b"#notetype column:2\n")
|
||||
f.write(b"#nid\tmid\tfields\n")
|
||||
for id, mid, flds in col.db.execute(
|
||||
f"select id, mid, flds from notes where id in {ids2str(nids)}"
|
||||
):
|
||||
|
|
|
|||
Loading…
Reference in a new issue