RANA commited on
Commit
bb6bac9
1 Parent(s): 3ead8a1

connection issue 3

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -342,10 +342,12 @@ def post_counts():
342
 
343
 
344
  if __name__ == "__main__":
 
345
  try:
346
  with app.app_context():
347
  # Check the database connection before running the application
348
  if test_db_connection():
 
349
  app.run()
350
  else:
351
  print("Database connection failed.")
 
342
 
343
 
344
  if __name__ == "__main__":
345
+ print("Database connection Checking.")
346
  try:
347
  with app.app_context():
348
  # Check the database connection before running the application
349
  if test_db_connection():
350
+ print("Database connection.")
351
  app.run()
352
  else:
353
  print("Database connection failed.")