From 5f394198f5413edc37be530fc1f46312ba14e737 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Thu, 23 May 2024 17:55:12 +0100 Subject: [PATCH] Finish up importing notes --- main | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main b/main index 10c58d0..3fc44c1 100644 --- a/main +++ b/main @@ -290,13 +290,12 @@ async def importnotes(): notes = data["notes"] userCookie = get_session(secretKey) - user = get_user(userCookie["id"]) conn = get_db_connection() notejson = loads(notes) for note in notejson: conn.execute("INSERT INTO notes (title, content, creator, created, edited) VALUES (?, ?, ?, ?, ?)", - (note["title"], note["content"], note["id"], note["created"], note["edited"]) + (note["title"], note["content"], userCookie["id"], note["created"], note["edited"])) conn.commit() conn.close()