readded the function

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-09 17:35:06 +01:00
parent 8c0dab43a0
commit c0ef372246
1 changed files with 8 additions and 0 deletions

View File

@ -64,6 +64,14 @@ def get_tube_list():
cur.close() cur.close()
return tubes 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/<tube_id>', methods=['GET']) @app.route('/get_assigned_params/<tube_id>', methods=['GET'])
def get_assigned_params(tube_id): def get_assigned_params(tube_id):
try: try: