None -> "" for default postgresql connect
This commit is contained in:
parent
367eb73dd4
commit
8af58850a1
1 changed files with 2 additions and 2 deletions
|
@ -16,9 +16,9 @@ from shapely.geometry import shape
|
|||
def db_connect():
|
||||
return psycopg2.connect(
|
||||
dbname=os.getenv("DB_NAME", "oedb"),
|
||||
host=os.getenv("DB_HOST", None),
|
||||
host=os.getenv("DB_HOST", ""),
|
||||
password=os.getenv("POSTGRES_PASSWORD", None),
|
||||
user=os.getenv("DB_USER", None))
|
||||
user=os.getenv("DB_USER", ""))
|
||||
|
||||
|
||||
class EventEncoder(json.JSONEncoder):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue