bug fix - route probleme
Dieser Commit ist enthalten in:
@@ -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 []
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren