Browse Source

change db name

Pi 2 years ago
parent
commit
a4c9ac03b9
2 changed files with 2 additions and 2 deletions
  1. 1 1
      grocery_transactions.py
  2. 1 1
      price_check.py

+ 1 - 1
grocery_transactions.py

@@ -33,7 +33,7 @@ try:
 
     import psycopg
     user = os.getenv('USER')
-    conn: Cursor = psycopg.connect(f"{host} dbname=das user={user} {password}")
+    conn: Cursor = psycopg.connect(f"{host} dbname=grocery user={user} {password}")
     cur = conn.cursor()
 except:
     print('Failed to set up db connection. Entering Mock mode')

+ 1 - 1
price_check.py

@@ -30,7 +30,7 @@ try:
 
     import psycopg
     user = os.getenv('USER')
-    conn = psycopg.connect(f"{host} dbname=das user={user} {password}")
+    conn = psycopg.connect(f"{host} dbname=grocery user={user} {password}")
     cur: Cursor = conn.cursor()
 except:
     print('Failed to set up db connection. Entering Mock mode')