From bb14797c6ffc89a7c9ef0228b27e3d189d80c348 Mon Sep 17 00:00:00 2001 From: Tim <48005783+xlZeroAccesslx@users.noreply.github.com> Date: Mon, 23 Nov 2020 17:08:51 -0500 Subject: [PATCH] Changed DB Query to Skip Encrypted Notes --- bear_export_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bear_export_sync.py b/bear_export_sync.py index 4552495..d893c43 100644 --- a/bear_export_sync.py +++ b/bear_export_sync.py @@ -163,7 +163,7 @@ def check_db_modified(): def export_markdown(): with sqlite3.connect(bear_db) as conn: conn.row_factory = sqlite3.Row - query = "SELECT * FROM `ZSFNOTE` WHERE `ZTRASHED` LIKE '0' AND `ZARCHIVED` LIKE '0'" + query = "SELECT * FROM `ZSFNOTE` WHERE `ZTRASHED` LIKE '0' AND `ZARCHIVED` LIKE '0' AND `ZENCRYPTED` LIKE '0'" c = conn.execute(query) note_count = 0 for row in c: