def main(): args = parse_args() load_config(args.conf_file) all_events = meta.Session.query(Event).all() for event in all_events: notify(event, database_only=True) meta.Session.commit()
def process(event): notification.notify(event)