error when looking the existing bills

This commit is contained in:
2025-12-04 21:14:44 +01:00
parent 8933dd372d
commit a6643fc181
12 changed files with 440 additions and 20 deletions

View File

@@ -141,7 +141,7 @@ def indexer(ids: list[str]) -> list[str]:
conn = get_conn()
logger.info("Indexation des factures pour l'année %s", YEAR)
target_dir = os.path.join(PATH_OVH, str(YEAR))
target_dir = os.path.join(PATH_OVH, "ovh" + str(YEAR))
try:
ids_already_in = {fn for fn in os.listdir(target_dir) if fn.endswith(".pdf")}
except FileNotFoundError: