wrong path

This commit is contained in:
Gaël
2025-09-29 09:41:15 +02:00
parent 1db321b7d4
commit c66935bcb6

View File

@@ -18,12 +18,6 @@ CREATE INDEX IF NOT EXISTS idx_platform ON published_items(platform);
class Storage:
def __init__(self, db_path: str = DB_PATH):
if not os.path.isfile(db_path):
db_path = os.environ.get("DB_FILE_FALLBACK", r"f:\workspace\Substack_JV\data\published.db")
print(db_path)
pathlib.Path(db_path).parent.mkdir(parents=True, exist_ok=True)
self.conn = sqlite3.connect(db_path)
self.conn.execute("PRAGMA foreign_keys = ON;")