mirror of
https://github.com/Fare-spec/get_ovh_bills.git
synced 2025-12-09 10:50:37 +00:00
error when looking the existing bills
This commit is contained in:
2
main.py
2
main.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user