This commit is contained in:
ishak jmilou.ishak
2024-12-17 15:03:21 +01:00
parent c4d2888fbf
commit 4da91f22ca

View File

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