Skip to content

Commit 4a843e5

Browse files
committed
Removed Unnecessary things
1 parent 6125a44 commit 4a843e5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from flask import Flask, render_template, request, jsonify, send_from_directory
1+
from flask import Flask, render_template, request, jsonify
22
from connection import Connection
33
import threading
44
import asyncio
@@ -37,19 +37,15 @@ def index():
3737
@app.route('/get_apps_config')
3838
def get_apps_config():
3939
try:
40-
# Try to load from config/apps.yaml first
4140
config_path = Path('config') / 'apps.yaml'
4241
if config_path.exists():
4342
with open(config_path, 'r') as file:
4443
config = yaml.safe_load(file)
4544
return jsonify(config)
46-
47-
# Fallback to built-in apps if YAML doesn't exist
4845
return jsonify
4946

5047
except Exception as e:
5148
logging.error(f"Error loading apps config: {str(e)}")
52-
# Minimal fallback if everything fails
5349
return jsonify
5450

5551
@app.route('/scan_ble')

0 commit comments

Comments
 (0)