Remove hardcoded PG password fallbacks — require PG_DSN env var in all scripts
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ import psycopg2
|
||||
|
||||
load_dotenv(Path.home() / "aaronai" / ".env")
|
||||
|
||||
PG_DSN = os.getenv("PG_DSN", "dbname=aaronai user=aaronai password=aaronai_db_password host=localhost")
|
||||
PG_DSN = os.getenv("PG_DSN")
|
||||
|
||||
def get_pg():
|
||||
return psycopg2.connect(PG_DSN)
|
||||
|
||||
Reference in New Issue
Block a user