From baf5596e3dea97f234b0dd14fa269661a844e64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 9 Feb 2024 17:40:47 +0100 Subject: [PATCH] fixed script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 9 ---- server/templates/index.html | 90 +++++++++++++------------------------ 2 files changed, 32 insertions(+), 67 deletions(-) diff --git a/server/app.py b/server/app.py index 172f976..0ef3081 100644 --- a/server/app.py +++ b/server/app.py @@ -55,15 +55,6 @@ def register_tube_route(): register_tube(mac_address) return jsonify({'success': True, 'message': 'Tube registered successfully.'}) -# Function to retrieve registered tubes from the database -@app.route('/get_tube_list', methods=['GET']) -def get_tube_list(): - cur = db.cursor() - cur.execute("SELECT * FROM tubes") - tubes = cur.fetchall() - cur.close() - return tubes - # Function to retrieve registered tubes from the database def get_tubes(): cur = db.cursor() diff --git a/server/templates/index.html b/server/templates/index.html index 04cadcd..cc61faf 100644 --- a/server/templates/index.html +++ b/server/templates/index.html @@ -60,69 +60,43 @@