From e5726cc1fd734c28529df1f540043c86bae1dfc4 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Tue, 11 Mar 2025 15:13:51 +0100 Subject: fixed export and update --- database.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'database.py') diff --git a/database.py b/database.py index a6c6c77..31238c6 100755 --- a/database.py +++ b/database.py @@ -75,3 +75,8 @@ class Database: SELECT id FROM categories WHERE name = ? ), ?, ?, datetime('now'));""", (category, title, markdown)) + def update_thought_markdown(self, id_, markdown): + cursor = self.__connection.cursor() + cursor.execute("UPDATE thoughts SET markdown_text = ? WHERE id = ?;", + (markdown, id_)) + -- cgit v1.2.3