Skip to content

Commit 11b8eaf

Browse files
committed
python delete typo fix
1 parent 2719422 commit 11b8eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def update():
4444
# DELETE
4545
@app.route('/delete', methods=['DELETE'])
4646
def delete():
47-
name = request.json['name']
47+
name = request.json['Name']
4848
conn = psycopg2.connect(database="postgres", user = "postgres", password = "password", host = "127.0.0.1", port = "5432")
4949
cur = conn.cursor()
5050
sql = "delete from data where name='%s'"%name

0 commit comments

Comments
 (0)