SeanChenTaipei 2 years ago
parent 27bb5db708
commit d362ff9c5b
  1. 3
      main.py
  2. 2
      templates/base.html

@ -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:

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% block title %}NTHU Trading Platform{% endblock title%}</title>
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='/img/growth.ico', _schema='https') }}">
<link rel="icon" type="shortcut icon" href="{{ url_for('static', filename='/img/growth.ico') }}">
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"
rel="stylesheet"

Loading…
Cancel
Save