summaryrefslogtreecommitdiff
path: root/database.py
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-03-11 15:13:51 +0100
committeryuzu-eva <cafebabe@disroot.org>2025-03-11 15:13:51 +0100
commite5726cc1fd734c28529df1f540043c86bae1dfc4 (patch)
tree4dc3aba1e65a4bff772c01fed164e5721a3802b7 /database.py
parent4fd81b67c61102042b0830663072577639692c3a (diff)
fixed export and update
Diffstat (limited to 'database.py')
-rwxr-xr-xdatabase.py5
1 files changed, 5 insertions, 0 deletions
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_))
+