From 9ea6ed5e2d79f02bcf4ad9dee46d4ee8a42f3313 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Tue, 17 Dec 2024 14:43:13 +0100 Subject: [PATCH] removed in /move --- src/Python/flask/web/app.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index ec7f8b8..9a7b4df 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -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: