From 330ed4f0cbb4195815016eb14a3e21ec34c5041c Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Mon, 20 Apr 2026 11:28:00 +0200 Subject: [PATCH] =?UTF-8?q?Base=20de=20donn=C3=A9es=20et=20.lock=20=C3=A0?= =?UTF-8?q?=20la=20racine=20de=20decp.info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/db.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/db.py b/src/db.py index 646fc25..9d96872 100644 --- a/src/db.py +++ b/src/db.py @@ -109,15 +109,8 @@ def build_database(db_path: Path, parquet_path: Path) -> None: logger.info(f"Base DuckDB construite : {db_path}") -def _resolve_db_path() -> Path: - parquet = os.getenv("DATA_FILE_PARQUET_PATH") - if not parquet: - raise RuntimeError("DATA_FILE_PARQUET_PATH is not set") - return Path(parquet).parent / "decp.duckdb" - - def _ensure_database() -> Path: - db_path = _resolve_db_path() + db_path = Path("./decp.duckdb") parquet_path = Path(os.getenv("DATA_FILE_PARQUET_PATH")) lock_path = db_path.with_suffix(".duckdb.lock")