fix: fix
This commit is contained in:
parent
4ce94e4977
commit
ee5b4d64f3
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ from dotenv import load_dotenv
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
host = os.getenv('DB_HOST_UPGRADE') if os.getenv('DB_HOST_UPGRADE') else os.getenv('DB_UPGRADE')
|
host = os.getenv('DB_HOST_UPGRADE') if os.getenv('DB_HOST_UPGRADE') else os.getenv('DB_HOST')
|
||||||
conn = psycopg2.connect(
|
conn = psycopg2.connect(
|
||||||
host=host,
|
host=host,
|
||||||
database=os.getenv('DB_NAME'),
|
database=os.getenv('DB_NAME'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue