Spaces:
Sleeping
Sleeping
print out some infos
Browse files
app.py
CHANGED
|
@@ -39,8 +39,9 @@ def init_db():
|
|
| 39 |
client: Database connection object
|
| 40 |
"""
|
| 41 |
client = Client(url=st.secrets["DB_URL"], user=st.secrets["USER"], password=st.secrets["PASSWD"])
|
|
|
|
| 42 |
# We can check if the connection is alive
|
| 43 |
-
|
| 44 |
meta_field = {}
|
| 45 |
return meta_field, client
|
| 46 |
|
|
|
|
| 39 |
client: Database connection object
|
| 40 |
"""
|
| 41 |
client = Client(url=st.secrets["DB_URL"], user=st.secrets["USER"], password=st.secrets["PASSWD"])
|
| 42 |
+
print(st.secrets["DB_URL"], st.secrets["USER"], st.secrets["PASSWD"])
|
| 43 |
# We can check if the connection is alive
|
| 44 |
+
assert client.is_alive()
|
| 45 |
meta_field = {}
|
| 46 |
return meta_field, client
|
| 47 |
|