bug fix - route probleme

Dieser Commit ist enthalten in:
2025-06-18 19:40:14 +02:00
Ursprung 4bfe1983a3
Commit 55e8a66f9f
21 geänderte Dateien mit 3847 neuen und 97 gelöschten Zeilen

Datei anzeigen

@@ -154,7 +154,7 @@ def get_customer_by_id(customer_id):
def get_active_sessions():
"""Get all active sessions"""
"""Get all is_active sessions"""
try:
with get_db_connection() as conn:
with get_db_cursor(conn) as cur:
@@ -164,7 +164,7 @@ def get_active_sessions():
JOIN licenses l ON s.license_id = l.id
LEFT JOIN customers c ON l.customer_id = c.id
WHERE s.is_active = true
ORDER BY s.start_time DESC
ORDER BY s.started_at DESC
""")
columns = [desc[0] for desc in cur.description]
@@ -174,5 +174,5 @@ def get_active_sessions():
sessions.append(session_dict)
return sessions
except Exception as e:
logger.error(f"Error fetching active sessions: {str(e)}")
logger.error(f"Error fetching is_active sessions: {str(e)}")
return []