fix: DEFAULT_DB respects STAGING_DB env var — was ignoring Docker-set path
This commit is contained in:
parent
d56c44224f
commit
40d87dc014
1 changed files with 2 additions and 1 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue