From 40d87dc014c026b29dd833fa97a2db6ecbcd3d54 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Wed, 4 Mar 2026 11:47:59 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20DEFAULT=5FDB=20respects=20STAGING=5FDB?= =?UTF-8?q?=20env=20var=20=E2=80=94=20was=20ignoring=20Docker-set=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/db.py b/scripts/db.py index 6cf888f..a091a87 100644 --- a/scripts/db.py +++ b/scripts/db.py @@ -3,12 +3,13 @@ SQLite staging layer for job listings. Jobs flow: pending → approved/rejected → applied → synced applied → phone_screen → interviewing → offer → hired (or rejected) """ +import os import sqlite3 from datetime import datetime from pathlib import Path from typing import Optional -DEFAULT_DB = Path(__file__).parent.parent / "staging.db" +DEFAULT_DB = Path(os.environ.get("STAGING_DB", Path(__file__).parent.parent / "staging.db")) CREATE_JOBS = """ CREATE TABLE IF NOT EXISTS jobs (