Backup automatico script del 2026-07-12 07:00
This commit is contained in:
@@ -207,6 +207,15 @@ def telegram_send_html(message_html: str, chat_ids: Optional[List[str]] = None)
|
||||
except Exception as e:
|
||||
LOGGER.exception("Telegram exception chat_id=%s err=%s", chat_id, e)
|
||||
|
||||
if sent_ok:
|
||||
try:
|
||||
import sys
|
||||
sys.path.insert(0, "/home/daniely/docker/shared")
|
||||
from loogle_core.alert_dispatcher import mirror_to_web
|
||||
mirror_to_web(message_html, "civil_protection", "warning", is_html=True)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return sent_ok
|
||||
|
||||
def load_state() -> dict:
|
||||
|
||||
Reference in New Issue
Block a user