Spaces:
Sleeping
Sleeping
Update models.py
Browse files
models.py
CHANGED
|
@@ -22,9 +22,9 @@ logging.basicConfig(
|
|
| 22 |
)
|
| 23 |
|
| 24 |
bcrypt = Bcrypt()
|
| 25 |
-
CA_CERT_PATH = os.path.join(os.getcwd(), 'ca.pem')
|
| 26 |
|
| 27 |
-
assert os.path.exists(CA_CERT_PATH), f"Missing: {CA_CERT_PATH}"
|
| 28 |
|
| 29 |
def get_db_connection():
|
| 30 |
try:
|
|
@@ -34,7 +34,7 @@ def get_db_connection():
|
|
| 34 |
user="avnadmin",
|
| 35 |
password=os.getenv("DB_PASSWORD"),
|
| 36 |
database="quamble",
|
| 37 |
-
ssl={'ca':
|
| 38 |
)
|
| 39 |
logging.info("Database connection established.")
|
| 40 |
return connection
|
|
|
|
| 22 |
)
|
| 23 |
|
| 24 |
bcrypt = Bcrypt()
|
| 25 |
+
# CA_CERT_PATH = os.path.join(os.getcwd(), 'ca.pem')
|
| 26 |
|
| 27 |
+
# assert os.path.exists(CA_CERT_PATH), f"Missing: {CA_CERT_PATH}"
|
| 28 |
|
| 29 |
def get_db_connection():
|
| 30 |
try:
|
|
|
|
| 34 |
user="avnadmin",
|
| 35 |
password=os.getenv("DB_PASSWORD"),
|
| 36 |
database="quamble",
|
| 37 |
+
ssl={'ca': './ca.pem'}
|
| 38 |
)
|
| 39 |
logging.info("Database connection established.")
|
| 40 |
return connection
|