Spaces:
Sleeping
Sleeping
argument 11 must be str or None, not bool
Browse files
app.py
CHANGED
|
@@ -10,9 +10,8 @@ DB_CONFIG = {
|
|
| 10 |
"host": "mysql-emploees-zabolotniua-5b91.c.aivencloud.com",
|
| 11 |
"port": 12374,
|
| 12 |
"user": "avnadmin",
|
| 13 |
-
"password": "AVNS_rccbF_so2YPvPk3zg0z"
|
| 14 |
-
#
|
| 15 |
-
"ssl_ca": False # Використовуємо False, щоб вимкнути перевірку SSL сертифіката
|
| 16 |
}
|
| 17 |
|
| 18 |
def get_db_connection(database=None):
|
|
@@ -52,7 +51,7 @@ def index():
|
|
| 52 |
"port": DB_CONFIG["port"],
|
| 53 |
"user": DB_CONFIG["user"],
|
| 54 |
"password": DB_CONFIG["password"],
|
| 55 |
-
"ssl_mode": "REQUIRED"
|
| 56 |
}
|
| 57 |
|
| 58 |
return render_template('index.html',
|
|
@@ -70,7 +69,7 @@ def index():
|
|
| 70 |
"port": DB_CONFIG["port"],
|
| 71 |
"user": DB_CONFIG["user"],
|
| 72 |
"password": DB_CONFIG["password"],
|
| 73 |
-
"ssl_mode": "REQUIRED"
|
| 74 |
}
|
| 75 |
|
| 76 |
return render_template('index.html',
|
|
|
|
| 10 |
"host": "mysql-emploees-zabolotniua-5b91.c.aivencloud.com",
|
| 11 |
"port": 12374,
|
| 12 |
"user": "avnadmin",
|
| 13 |
+
"password": "AVNS_rccbF_so2YPvPk3zg0z"
|
| 14 |
+
# Без SSL налаштувань
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
def get_db_connection(database=None):
|
|
|
|
| 51 |
"port": DB_CONFIG["port"],
|
| 52 |
"user": DB_CONFIG["user"],
|
| 53 |
"password": DB_CONFIG["password"],
|
| 54 |
+
"ssl_mode": "REQUIRED" # Тільки для відображення
|
| 55 |
}
|
| 56 |
|
| 57 |
return render_template('index.html',
|
|
|
|
| 69 |
"port": DB_CONFIG["port"],
|
| 70 |
"user": DB_CONFIG["user"],
|
| 71 |
"password": DB_CONFIG["password"],
|
| 72 |
+
"ssl_mode": "REQUIRED" # Тільки для відображення
|
| 73 |
}
|
| 74 |
|
| 75 |
return render_template('index.html',
|