Security fix

This commit is contained in:
2026-11-08 16:20:23 +01:00
parent 93fc177911
commit 311c4053f0
15 changed files with 281 additions and 50 deletions
+8 -8
View File
@@ -1,11 +1,11 @@
import sqlite3
import json
from app import broadcast_push_notification, init_db
"""Invia una notifica push di prova a tutti gli iscritti, senza avviare MQTT e i thread dell'app.
# Proviamo a inviare una notifica a tutti gli iscritti nel DB
Uso (dalla cartella del progetto, con il venv attivo): python test-push.py
"""
from core.database import init_db
from services.push_service import _send_push
init_db()
print("🚀 Starting notification test...")
broadcast_push_notification(
"⚠️ ALLERTA FLOTTA",
"Test Push Notification: System Online!"
)
_send_push("⚠️ ALLERTA FLOTTA", "Test Push Notification: System Online!", None)
print("✅ Command sent.")