alerts.py update