From a730fb7bca0c40133496748300fa61b87136a2ca Mon Sep 17 00:00:00 2001 From: SeanChenTaipei Date: Sun, 5 Mar 2023 17:22:18 +0800 Subject: [PATCH] ff --- main.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/main.py b/main.py index d4ba81d..ce7ef52 100644 --- a/main.py +++ b/main.py @@ -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",