From a2147cc964d385a59f077add9d7e5ba009bf9b2e Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Fri, 27 Sep 2024 16:58:44 +0200 Subject: Remove broken tests Will be readded after some major refactoring and modernization. --- fhost.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'fhost.py') diff --git a/fhost.py b/fhost.py index 4b9a683..8b31a39 100755 --- a/fhost.py +++ b/fhost.py @@ -80,15 +80,14 @@ app.config.update( URL_ALPHABET = "DEQhd2uFteibPwq0SWBInTpA_jcZL5GKz3YCR14Ulk87Jors9vNHgfaOmMXy6Vx-", ) -if not app.config["TESTING"]: - app.config.from_pyfile("config.py") - app.jinja_loader = ChoiceLoader([ - FileSystemLoader(str(Path(app.instance_path) / "templates")), - app.jinja_loader - ]) - - if app.config["DEBUG"]: - app.config["FHOST_USE_X_ACCEL_REDIRECT"] = False +app.config.from_pyfile("config.py") +app.jinja_loader = ChoiceLoader([ + FileSystemLoader(str(Path(app.instance_path) / "templates")), + app.jinja_loader +]) + +if app.config["DEBUG"]: + app.config["FHOST_USE_X_ACCEL_REDIRECT"] = False if app.config["NSFW_DETECT"]: from nsfw_detect import NSFWDetector -- cgit v1.2.3