diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 32bdbe3..267a6e9 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -59,7 +59,9 @@ def move(): db_connection = get_db() cursor = db_connection.cursor() - cursor.execute("INSERT INTO command (direction) VALUES (%s)", (direction,)) + sql = "INSERT INTO command (command) VALUES (%s)" + value = direction + cursor.execute(sql, (value,)) db_connection.commit() cursor.close() db_connection.close()