Skip to content

Commit

Permalink
fix: don't download again the file if it didn't change
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Nov 8, 2024
1 parent c11f827 commit 70af15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfoodfacts_exports/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def export_job(flavor: Flavor) -> None:
"""Download the JSONL dataset and launch exports through new rq jobs."""
dataset_path = get_dataset(
flavor=flavor, dataset_type=DatasetType.jsonl, force_download=True
flavor=flavor, dataset_type=DatasetType.jsonl, download_newer=True
)

if flavor is Flavor.off:
Expand Down

0 comments on commit 70af15f

Please sign in to comment.