MENG21 commited on
Commit
69ba836
·
1 Parent(s): b76498c

Update database configuration to use simplified secret keys for connection parameters.

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -225,11 +225,11 @@ def handle_callback():
225
 
226
  # Database configuration
227
  DB_CONFIG = {
228
- 'host': st.secrets.db.host,
229
- 'port': int(st.secrets.db.port),
230
- 'user': st.secrets.db.user,
231
- 'password': st.secrets.db.password,
232
- 'database': st.secrets.db.database
233
  }
234
 
235
  if __name__ == '__main__':
 
225
 
226
  # Database configuration
227
  DB_CONFIG = {
228
+ 'host': st.secrets.host,
229
+ 'port': int(st.secrets.port),
230
+ 'user': st.secrets.user,
231
+ 'password': st.secrets.password,
232
+ 'database': st.secrets.database
233
  }
234
 
235
  if __name__ == '__main__':