From 0c77318dfcd8ac7e08f07c12f7dba9a56898d2e6 Mon Sep 17 00:00:00 2001 From: "Harvey R." <84394475+hnvy@users.noreply.github.com> Date: Wed, 3 Dec 2025 01:38:47 +0000 Subject: [PATCH] Add headers to deleted.txt to detect Note Type and GUID --- qt/aqt/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index c707d1b2a..838a6b459 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -1643,7 +1643,9 @@ title="{}" {}>{}""".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)}" ):