Files
AWatch-rus/aw-server/dlp-case-management/case_rules.py
T

9 lines
292 B
Python

#!/usr/bin/env python3
from __future__ import annotations
def is_self_test_case(incident_id: str | None, title: str | None) -> bool:
incident = str(incident_id or "").lower()
label = str(title or "").lower()
return "|self_test|" in incident or label.startswith("dlp self_test")