There was an error while loading. Please reload this page.
1 parent 99947ce commit 9403693Copy full SHA for 9403693
app/routes.py
@@ -33,7 +33,7 @@ def add(name):
33
34
cur = db.cursor()
35
cur.execute("CREATE TABLE IF NOT EXISTS todo_db (todo text);")
36
- cur.execute("INSERT INTO todo_db(todo) VALUES(?);",(name,))
+ cur.execute("INSERT INTO todo_db(todo) VALUES(%s);",(name,))
37
db.commit()
38
db.close()
39
# conn.commit()
0 commit comments