From d362ff9c5be0eb368fbc9cfdfea3dffc3a5cd1b1 Mon Sep 17 00:00:00 2001 From: SeanChenTaipei Date: Mon, 13 Mar 2023 15:47:43 +0800 Subject: [PATCH] c --- main.py | 3 ++- templates/base.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 72aa371..fe8978d 100644 --- a/main.py +++ b/main.py @@ -25,7 +25,6 @@ CONFIGS = { # "DEBUG": True, "SECRET_KEY": os.urandom(30), # Set the secret key for session authentication "PERMANENT_SESSION_LIFETIME": timedelta(minutes=60), - "PREFERRED_URL_SCHEME" : 'https' } SQL_CONFIG = dict( database= os.getenv("PGDATABASE"), @@ -51,6 +50,8 @@ role_map = dict(max_sharpe='最大化夏普比率', max_sortino='最大化索提 app = Flask(__name__) app.config.from_mapping(CONFIGS) +app.add_url_rule('/growth.ico', + redirect_to=url_for('static', filename='img/growth.ico')) # Load Assets with open('assets_tw.json') as f: diff --git a/templates/base.html b/templates/base.html index fca5ebc..3606943 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,7 +5,7 @@ {% block title %}NTHU Trading Platform{% endblock title%} - +