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()