fix(worktime-bridge): do not let active=false mask unknown-session fallback

This commit is contained in:
igor04091968
2026-05-09 12:31:16 +03:00
parent 2bf667fccc
commit ce428fb5f8
+2 -1
View File
@@ -84,7 +84,8 @@ def build_window_title(users, active_count):
def _is_session_active(row_data):
if isinstance(row_data.get("active"), bool):
return row_data.get("active")
if row_data.get("active"):
return True
state = str(row_data.get("state", "")).strip().lower()
if state in {"active", "активно"}:
return True