Skip to content

Commit 9403693

Browse files
jjj
1 parent 99947ce commit 9403693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def add(name):
3333

3434
cur = db.cursor()
3535
cur.execute("CREATE TABLE IF NOT EXISTS todo_db (todo text);")
36-
cur.execute("INSERT INTO todo_db(todo) VALUES(?);",(name,))
36+
cur.execute("INSERT INTO todo_db(todo) VALUES(%s);",(name,))
3737
db.commit()
3838
db.close()
3939
# conn.commit()

0 commit comments

Comments
 (0)