Spaces:
Sleeping
Sleeping
added edit to connection string
Browse files- insert_data.py +1 -1
insert_data.py
CHANGED
@@ -19,7 +19,7 @@ def create_connection():
|
|
19 |
"""
|
20 |
conn = None
|
21 |
try:
|
22 |
-
db_uri = f"host={DB_HOST} dbname={DB_NAME} user={DB_USER} password={DB_PASS} sslmode=
|
23 |
conn = psycopg.connect(db_uri)
|
24 |
except:
|
25 |
print("Error during connection is \n", e)
|
|
|
19 |
"""
|
20 |
conn = None
|
21 |
try:
|
22 |
+
db_uri = f"host={DB_HOST} dbname={DB_NAME} user={DB_USER} password={DB_PASS} sslmode=DB_SSLMODE"
|
23 |
conn = psycopg.connect(db_uri)
|
24 |
except:
|
25 |
print("Error during connection is \n", e)
|