fix(worktime): isolate global session collector and reset RDP bridge flow

This commit is contained in:
igor04091968
2026-05-13 08:18:47 +03:00
parent b69f4d83cc
commit f6ee903b10
8 changed files with 163 additions and 29 deletions
+2 -1
View File
@@ -42,7 +42,8 @@ def _is_active_sample(data: dict) -> bool:
except Exception:
sid = -1
user = str(data.get("username") or "").strip()
if sid > 0 and user and (not _is_machine_user(user)):
session_name = str(data.get("sessionName") or "").strip().lower()
if sid > 0 and user and (not _is_machine_user(user)) and (session_name.startswith("rdp-") or session_name == "console"):
return True
return False