Spaces:
Build error
Build error
samlonka commited on
Commit ·
309dfff
1
Parent(s): 453b557
'database'
Browse files- database.py +1 -0
database.py
CHANGED
|
@@ -16,6 +16,7 @@ def initialize_database():
|
|
| 16 |
"user": st.secrets["username"],
|
| 17 |
"password": st.secrets["password"],
|
| 18 |
"port": int(st.secrets["port"]),
|
|
|
|
| 19 |
}
|
| 20 |
db = pymysql.connect(**db_params)
|
| 21 |
logging.info("Connected to the database successfully!")
|
|
|
|
| 16 |
"user": st.secrets["username"],
|
| 17 |
"password": st.secrets["password"],
|
| 18 |
"port": int(st.secrets["port"]),
|
| 19 |
+
"database": st.secrets["database"],
|
| 20 |
}
|
| 21 |
db = pymysql.connect(**db_params)
|
| 22 |
logging.info("Connected to the database successfully!")
|