示例#1
0
def main():
    config_json = json.load(codecs.open("config_release.json", "r", encoding="UTF-8"))
    db_config = config_json["database"]
    smtp_config = config_json["smtp"]
    santa_config = config_json["santa"]

    postgres = PostgresInjection(db_config)

    with Shuffler(postgres, santa_config) as shuffler:
        shuffler.work()

    notifier = Notifier(postgres, smtp_config, santa_config)
    notifier.notify_unawared()