Fix jwt-token
This commit is contained in:
@@ -99,6 +99,7 @@ def debug_device_status():
|
||||
print(f" Name: {stockholm_device.get('name', 'N/A')}")
|
||||
print(f" Active: {stockholm_device.get('is_active', False)}")
|
||||
print(f" Approved: {stockholm_device.get('is_approved', False)}")
|
||||
print(f" Coordinates: {stockholm_device.get('geo_lat', 'N/A')}, {stockholm_device.get('geo_lon', 'N/A')}")
|
||||
print(f" Last Heartbeat: {stockholm_device.get('last_heartbeat', 'Never')}")
|
||||
print(f" Heartbeat Interval: {stockholm_device.get('heartbeat_interval', 'Not set')} seconds")
|
||||
|
||||
@@ -131,7 +132,8 @@ def debug_device_status():
|
||||
print("❌ Stockholm device not found")
|
||||
print("Available devices:")
|
||||
for device in devices:
|
||||
print(f" - ID {device['id']}: {device.get('name', 'Unnamed')}")
|
||||
coords = f"({device.get('geo_lat', 'N/A')}, {device.get('geo_lon', 'N/A')})"
|
||||
print(f" - ID {device['id']}: {device.get('name', 'Unnamed')} at {coords}")
|
||||
else:
|
||||
print(f"❌ No devices found")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user