diff --git a/containers/backupchecks/src/backend/app/parsers/synology.py b/containers/backupchecks/src/backend/app/parsers/synology.py index d8c4857..6b8bdaf 100644 --- a/containers/backupchecks/src/backend/app/parsers/synology.py +++ b/containers/backupchecks/src/backend/app/parsers/synology.py @@ -1,12 +1,7 @@ - # --- Synology DSM Updates (informational, excluded from reporting) --- -DSM_UPDATE_CANCELLED_PATTERNS = [ - "Automatische update van DSM is geannuleerd", - "Automatic DSM update was cancelled", -] - from __future__ import annotations + import re from typing import Dict, Tuple, List, Optional @@ -19,6 +14,11 @@ from ..models import MailMessage # - Hyper Backup (Synology): task notifications from Hyper Backup # - Account Protection (Synology): DSM Account Protection lockout notifications +DSM_UPDATE_CANCELLED_PATTERNS = [ + "Automatische update van DSM is geannuleerd", + "Automatic DSM update was cancelled", +] + _BR_RE = re.compile(r"<\s*br\s*/?\s*>", re.I) _TAG_RE = re.compile(r"<[^>]+>") _WS_RE = re.compile(r"[\t\r\f\v ]+")