mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
want to check data
This commit is contained in:
@@ -77,11 +77,12 @@ def move():
|
|||||||
db_connection = get_db()
|
db_connection = get_db()
|
||||||
cursor = db_connection.cursor()
|
cursor = db_connection.cursor()
|
||||||
sql_command = "INSERT INTO command (command) VALUES (%s)"
|
sql_command = "INSERT INTO command (command) VALUES (%s)"
|
||||||
cursor.execute(sql_command, (direction,))
|
cursor.execute(sql_command, (direction,))
|
||||||
|
|
||||||
db_connection.commit()
|
db_connection.commit()
|
||||||
cursor.close()
|
cursor.close()
|
||||||
db_connection.close()
|
db_connection.close()
|
||||||
|
print(f"check: {data}")
|
||||||
return jsonify({"status": "success", "direction": direction})
|
return jsonify({"status": "success", "direction": direction})
|
||||||
|
|
||||||
@app.route("/database")
|
@app.route("/database")
|
||||||
|
Reference in New Issue
Block a user