mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
changed
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user