From 535709092e80c356c348cd4c2bcbb6ed3c567f4c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 15 Dec 2021 00:36:50 +0200 Subject: [PATCH] fdsfsd --- files/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/__main__.py b/files/__main__.py index 6aa668154..eeec3fc4e 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -16,7 +16,10 @@ import gevent from werkzeug.middleware.proxy_fix import ProxyFix import redis -app = Flask(__name__, template_folder='templates') +if environ.get("CHRISTMAS"): templates = 'christmas/templates' +else: templates = 'templates' +app = Flask(__name__, template_folder=templates) + app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3) app.url_map.strict_slashes = False app.jinja_env.cache = {}