Add headers to deleted.txt to detect Note Type and GUID

This commit is contained in:
Harvey R. 2025-12-03 01:38:47 +00:00 committed by GitHub
parent 2d4de33cf3
commit 0c77318dfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)}"
):