Update flask_server.py

This commit is contained in:
MacRimi
2026-03-05 19:59:17 +01:00
parent 260870ad8a
commit 5a79556ab2

View File

@@ -2434,9 +2434,9 @@ def api_storage_summary():
return jsonify({'error': str(e)}), 500
# END OF CHANGE FOR /api/storage/summary
@app.route('/api/storage/observations', methods=['GET'])
@require_auth
def api_storage_observations():
@app.route('/api/storage/observations', methods=['GET'])
@require_auth
def api_storage_observations():
"""Get disk observations (permanent error history) for a specific disk or all disks."""
try:
device = request.args.get('device', '')
@@ -2455,7 +2455,7 @@ def api_storage_summary():
except Exception as e:
return jsonify({'observations': [], 'error': str(e)}), 500
def get_interface_type(interface_name):
def get_interface_type(interface_name):
"""Detect the type of network interface"""
try:
# Skip loopback