|
|
|
@ -20,25 +20,25 @@ pd.options.plotting.backend = "plotly" |
|
|
|
|
|
|
|
|
|
# PARAMETERS |
|
|
|
|
CONFIGS = { |
|
|
|
|
"ENV": "development", |
|
|
|
|
"DEBUG": True, |
|
|
|
|
# "ENV": "development", |
|
|
|
|
# "DEBUG": True, |
|
|
|
|
"SECRET_KEY": os.urandom(30), # Set the secret key for session authentication |
|
|
|
|
"PERMANENT_SESSION_LIFETIME": timedelta(minutes=60) |
|
|
|
|
} |
|
|
|
|
# SQL_CONFIG = dict( |
|
|
|
|
# database= os.getenv("PGDATABASE"), |
|
|
|
|
# user=os.getenv("PGUSER"), |
|
|
|
|
# host=os.getenv("PGHOST"), |
|
|
|
|
# port=os.getenv("PGPORT"), |
|
|
|
|
# password=os.getenv("PGPASSWORD") |
|
|
|
|
# ) |
|
|
|
|
SQL_CONFIG = dict( |
|
|
|
|
database="railway", |
|
|
|
|
user="postgres", |
|
|
|
|
host="containers-us-west-103.railway.app", |
|
|
|
|
port="5913", |
|
|
|
|
password="gv5Mh7cPjCm9YTjAmsYD" |
|
|
|
|
database= os.getenv("PGDATABASE"), |
|
|
|
|
user=os.getenv("PGUSER"), |
|
|
|
|
host=os.getenv("PGHOST"), |
|
|
|
|
port=os.getenv("PGPORT"), |
|
|
|
|
password=os.getenv("PGPASSWORD") |
|
|
|
|
) |
|
|
|
|
# SQL_CONFIG = dict( |
|
|
|
|
# database="railway", |
|
|
|
|
# user="postgres", |
|
|
|
|
# host="containers-us-west-103.railway.app", |
|
|
|
|
# port="5913", |
|
|
|
|
# password="gv5Mh7cPjCm9YTjAmsYD" |
|
|
|
|
# ) |
|
|
|
|
# SQL_CONFIG = { |
|
|
|
|
# 'database': "tpm", |
|
|
|
|
# 'user': "hsienchen", |
|
|
|
|