fix: db.connect() возвращает ошибку, /test показывает детали

This commit is contained in:
2026-06-13 12:34:55 +04:00
parent 23cec8686e
commit c7fbc4dc07
3 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class ContractsApp:
self.app.register_blueprint(test_bp)
def index(self):
conn = db.connect()
conn, _ = db.connect()
db_status = "connected" if conn else "no DB"
return render_template("index.html", db_status=db_status)