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
@@ -112,7 +112,8 @@ def is_active(d):
try: sid=int(d.get("sessionId"))
except: sid=-1
u=str(d.get("username","")).strip().lower()
if sid>0 and u and (not u.endswith("$")): return True
sn=str(d.get("sessionName","")).strip().lower()
if sid>0 and u and (not u.endswith("$")) and (sn.startswith("rdp-") or sn=="console"): return True
return False
rows=req("GET",f"/api/0/buckets/{sb}/events?limit=12000") or []