def get(self): datefmt = ISO8601DateTime() config = dict( teams=app.config.get('TEAMS'), sbname=app.config.get('TITLE'), news_mechanism='poll', news_poll_interval=app.config.get('NEWS_POLL_INTERVAL'), csrf_token=csrfutil.get_csrf_token(), rules=app.config.get('RULES'), game_start=datefmt.format(utils.GameTime.start), game_end=datefmt.format(utils.GameTime.end), login_url=auth.get_login_uri(), register_url=auth.get_register_uri(), login_method=app.config.get('LOGIN_METHOD'), scoring=app.config.get('SCORING'), validators=validators.ValidatorMeta(), ) return config
def get(self): datefmt = ISO8601DateTime() config = dict( teams=app.config.get('TEAMS'), sbname=app.config.get('TITLE'), news_mechanism='poll', news_poll_interval=app.config.get('NEWS_POLL_INTERVAL'), csrf_token=csrfutil.get_csrf_token(), rules=app.config.get('RULES'), game_start=datefmt.format(utils.GameTime.start), game_end=datefmt.format(utils.GameTime.end), login_url=auth.get_login_uri(), register_url=auth.get_register_uri(), login_method=app.config.get('LOGIN_METHOD'), scoring=app.config.get('SCORING'), validators=validators.ValidatorMeta(), proof_of_work_bits=int(app.config.get('PROOF_OF_WORK_BITS')), invite_only=app.config.get('INVITE_KEY') is not None, ) return config