sankalps commited on
Commit
f646c84
1 Parent(s): 5030cb2

added edit to connection string

Browse files
Files changed (1) hide show
  1. 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=DB_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)