From c0ef372246d8583a9e0ecb51f3f168ebe6bbdaea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 9 Feb 2024 17:35:06 +0100 Subject: [PATCH] readded the function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/app.py b/server/app.py index a2e6c97..172f976 100644 --- a/server/app.py +++ b/server/app.py @@ -64,6 +64,14 @@ def get_tube_list(): cur.close() return tubes +# Function to retrieve registered tubes from the database +def get_tubes(): + cur = db.cursor() + cur.execute("SELECT * FROM tubes") + tubes = cur.fetchall() + cur.close() + return tubes + @app.route('/get_assigned_params/', methods=['GET']) def get_assigned_params(tube_id): try: