|
@@ -33,9 +33,10 @@ DEFAULT_TAGS =[
|
|
'Travel',
|
|
'Travel',
|
|
]
|
|
]
|
|
try:
|
|
try:
|
|
- from db_credentials import HOST, PASSWORD
|
|
|
|
|
|
+ from db_credentials import USER, HOST, PASSWORD
|
|
host = f'host={HOST}'
|
|
host = f'host={HOST}'
|
|
password = f'password={PASSWORD}'
|
|
password = f'password={PASSWORD}'
|
|
|
|
+ user = f'user={USER}'
|
|
except:
|
|
except:
|
|
host = ''
|
|
host = ''
|
|
password = ''
|
|
password = ''
|
|
@@ -71,8 +72,7 @@ STORE_CODES = {
|
|
'WWNZ' : 'CD',
|
|
'WWNZ' : 'CD',
|
|
}
|
|
}
|
|
|
|
|
|
-user = os.getenv('USER')
|
|
|
|
-conn = psycopg.connect(f"{host} dbname=grocery user={user} {password}")
|
|
|
|
|
|
+conn = psycopg.connect(f"{host} dbname=grocery {user} {password}")
|
|
cur = conn.cursor()
|
|
cur = conn.cursor()
|
|
output = []
|
|
output = []
|
|
|
|
|