wip: backend

This commit is contained in:
Michael Costa 2023-04-08 14:31:17 +11:00
parent d61c48e084
commit 27a6205595

View File

@ -3,7 +3,7 @@ import logging
from logging import config from logging import config
import yaml import yaml
from flask import Flask, render_template, redirect, request, url_for from flask import Flask, render_template, redirect, request, url_for
from thsf.backend import Backend # from thsf.backend import Backend
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@ -31,9 +31,9 @@ try:
app.config["SECRET_KEY"] = app.local_config["app"]["secret_key"] app.config["SECRET_KEY"] = app.local_config["app"]["secret_key"]
app.config["LANGUAGES"] = app.local_config["app"]["languages"] app.config["LANGUAGES"] = app.local_config["app"]["languages"]
config.dictConfig(app.local_config["log"]) config.dictConfig(app.local_config["log"])
backend = Backend(url=app.local_config["pretalx"]["url"], # backend = Backend(url=app.local_config["pretalx"]["url"],
apiprefix=app.local_config["pretalx"]["apiprefix"], # apiprefix=app.local_config["pretalx"]["apiprefix"],
apikey=app.local_config["pretalx"]["apikey"]) # apikey=app.local_config["pretalx"]["apikey"])
except Exception as err: except Exception as err:
logger.critical("[{}] {}".format(err.__class__, str(err))) logger.critical("[{}] {}".format(err.__class__, str(err)))
sys.exit(1) sys.exit(1)