wrong path
This commit is contained in:
@@ -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;")
|
||||
|
||||
Reference in New Issue
Block a user