Remove hardcoded PG password fallbacks — require PG_DSN env var in all scripts

This commit is contained in:
2026-04-27 05:16:37 +00:00
parent a1f5c1049a
commit 6776637178
5 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ load_dotenv(Path.home() / "aaronai" / ".env")
print("Loading embedding model...")
embedder = SentenceTransformer("all-MiniLM-L6-v2")
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)