mirror of
https://github.com/Horizontal42/netsleuth.git
synced 2026-11-10 20:22:03 +03:00
models: add optional russian translation fields to finding, reputation, dns leak
This commit is contained in:
parent
6f47ea7736
commit
04cf37ef7e
1 changed files with 5 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ class Finding:
|
||||||
value: float | str | None = None
|
value: float | str | None = None
|
||||||
threshold: float | str | None = None
|
threshold: float | str | None = None
|
||||||
advice: str | None = None
|
advice: str | None = None
|
||||||
|
title_ru: str | None = None
|
||||||
|
detail_ru: str | None = None
|
||||||
|
advice_ru: str | None = None
|
||||||
|
|
||||||
def __post_init__(self) -> None:
|
def __post_init__(self) -> None:
|
||||||
if self.severity not in SEVERITIES:
|
if self.severity not in SEVERITIES:
|
||||||
|
|
@ -147,6 +150,7 @@ class DnsLeak:
|
||||||
per_adapter: list[AdapterLeakResult] = field(default_factory=list)
|
per_adapter: list[AdapterLeakResult] = field(default_factory=list)
|
||||||
ecs_leaked: bool = False
|
ecs_leaked: bool = False
|
||||||
note: str = ""
|
note: str = ""
|
||||||
|
note_ru: str | None = None
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
@ -223,6 +227,7 @@ class Reputation:
|
||||||
abuseipdb_reports: int | None = None
|
abuseipdb_reports: int | None = None
|
||||||
captcha_risk: str = "low"
|
captcha_risk: str = "low"
|
||||||
rationale: str = ""
|
rationale: str = ""
|
||||||
|
rationale_ru: str | None = None
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue