From 1f742aee096707b45b3ee7dd63e2e9087c9cb625 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 22 Dec 2021 00:28:31 +0200 Subject: [PATCH] sfd --- files/__main__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 2b4b93c33..4a225db61 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -23,7 +23,7 @@ app.jinja_env.cache = {} app.jinja_env.auto_reload = True import faulthandler faulthandler.enable() - + app.config["SITE_NAME"]=environ.get("SITE_NAME").strip() app.config["COINS_NAME"]=environ.get("COINS_NAME").strip() @@ -33,7 +33,7 @@ app.config['DATABASE_URL'] = environ.get("DATABASE_URL") app.config['SECRET_KEY'] = environ.get('MASTER_KEY') app.config["SERVER_NAME"] = environ.get("DOMAIN").strip() app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 86400 -app.config["SESSION_COOKIE_NAME"] = f'session_{environ.get("DOMAIN")}'.strip().lower() +app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("SITE_NAME").strip().lower() app.config["VERSION"] = "1.0.0" app.config['MAX_CONTENT_LENGTH'] = 8 * 1024 * 1024 app.config["SESSION_COOKIE_SECURE"] = True @@ -110,10 +110,6 @@ def before_request(): elif "Mobile/" in ua: g.system="ios/webview" else: g.system="other/other" -@app.get('/tw') -def get_tailwind(): - return render_template('tailwind.html') - @app.teardown_appcontext def teardown_request(error): if hasattr(g, 'db') and g.db: