Security fix
This commit is contained in:
+8
-8
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user