removed in /move

This commit is contained in:
ishak jmilou.ishak
2024-12-17 14:43:13 +01:00
parent 92992288b5
commit 9ea6ed5e2d

View File

@@ -52,13 +52,6 @@ def control():
def move():
data = request.get_json()
direction = data.get("direction")
# Haal databaseverbinding op
db = get_db()
cursor = db.cursor()
cursor.execute("INSERT INTO command VALUES (%s)", (direction,))
db.commit()
cursor.close()
# Verstuur de richting via MQTT
if direction: