from datetime import datetime ctf_name = "TJCTF" eligibility = "In order to be eligible for prizes, all members of your team must be in high school, and you must not have more than four team members." tagline = "a cybersecurity competition created by TJHSST students" cdn = True apisubmit = True proxied_ip_header = "X-Forwarded-For" flag_rl = 10 teams_on_graph = 10 mail_from = "tjctf@sandbox1431.mailgun.org" static_prefix = "http://127.0.0.1/tjctf-static/" static_dir = "/home/fwilson/web/tjctf-static/" competition_begin = datetime(1970, 1, 1, 0, 0) competition_end = datetime(2018, 1, 1, 0, 0) def competition_is_running(): return competition_begin < datetime.now() < competition_end # Don't touch these. Instead, copy secrets.example to secrets and edit that. import yaml from collections import namedtuple with open("secrets") as f: _secret = yaml.load(f) secret = namedtuple('SecretsDict', _secret.keys())(**_secret)