コード例 #1
0
ファイル: alerts.py プロジェクト: wdsn/aleph
def check_alerts():
    """Go through all alerts."""
    for alert_id in list(Alert.all_ids()):
        check_alert(alert_id)
コード例 #2
0
def check_alerts():
    """Go through all alerts."""
    Alert.dedupe()
    db.session.commit()
    for alert_id in Alert.all_ids():
        check_alert(alert_id)