Skip to content

Commit

Permalink
fix: fix Parquet dataset push to Hub
Browse files Browse the repository at this point in the history
A return statement was missing, and Parquet file was pushed in
staging as well
  • Loading branch information
raphael0202 committed Nov 5, 2024
1 parent 8b457f8 commit 9796cf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions robotoff/scheduler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def _update_data() -> None:

if not settings.ENABLE_HF_PUSH:
logger.info("HF push is disabled, skipping Parquet conversion")
return

Check warning on line 314 in robotoff/scheduler/__init__.py

View check run for this annotation

Codecov / codecov/patch

robotoff/scheduler/__init__.py#L314

Added line #L314 was not covered by tests

if ds_changed:
logger.info("Starting conversion of JSONL to Parquet (to HF)")
Expand Down

0 comments on commit 9796cf6

Please sign in to comment.