fix: db.connect() возвращает ошибку, /test показывает детали
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user