fix: RDG event label and prefix type filter (0.3.2)

Use event 302/303 instead of Win302 in RDG titles. Match event types by prefix in events list (e.g. rdg.connection).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
PTah
2026-06-22 20:07:22 +10:00
parent 24ca87a47a
commit 1b96a3b2c7
8 changed files with 65 additions and 8 deletions
+4 -2
View File
@@ -154,8 +154,10 @@ def list_events(
stmt = stmt.where(Event.severity == severity)
count_stmt = count_stmt.where(Event.severity == severity)
if type:
stmt = stmt.where(Event.type == type)
count_stmt = count_stmt.where(Event.type == type)
normalized = type.strip()
if normalized:
stmt = stmt.where(Event.type.ilike(f"{normalized}%"))
count_stmt = count_stmt.where(Event.type.ilike(f"{normalized}%"))
if host_id is not None:
stmt = stmt.where(Event.host_id == host_id)
count_stmt = count_stmt.where(Event.host_id == host_id)
+1 -1
View File
@@ -69,7 +69,7 @@ def _windows_event_label(event: Event) -> str:
if win_id is None:
return ""
text = str(win_id).strip()
return f"Win{text}" if text else ""
return f"event {text}" if text else ""
def _action_label(event: Event) -> str:
+1 -1
View File
@@ -1,5 +1,5 @@
"""Единый источник версии SAC (API, health, логи, OpenAPI)."""
APP_NAME = "Security Alert Center"
APP_VERSION = "0.3.1"
APP_VERSION = "0.3.2"
APP_VERSION_LABEL = f"{APP_NAME} v.{APP_VERSION}"