diff options
| author | Mia Herkt <mia@0x0.st> | 2024-09-27 16:58:44 +0200 |
|---|---|---|
| committer | Mia Herkt <mia@0x0.st> | 2024-09-27 18:30:31 +0200 |
| commit | a2147cc964d385a59f077add9d7e5ba009bf9b2e (patch) | |
| tree | 5aafa0c9f849f404136455802e83f04b2487af0e /fhost.py | |
| parent | 45a414c5ee004fbb4e6d7563be8e65cf2be84f37 (diff) | |
Remove broken tests
Will be readded after some major refactoring and modernization.
Diffstat (limited to 'fhost.py')
| -rwxr-xr-x | fhost.py | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -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 |
