Skip to content

Commit

Permalink
Allow re-querying catalog in dry-run mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Jan 29, 2025
1 parent 708b006 commit 91973f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ lint = [
"ruff==0.8.4",
]
check = [
"pyright==1.1.392.post0",
"pyright==1.1.393",
]
test = [
"pytest==8.3.4",
Expand Down
10 changes: 5 additions & 5 deletions src/kiwixseeder/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@
> `--filename 'mali*'` matches a single ZIM:
- `openZIM:mali-pour-les-nuls_fr_all: @ 2024-09-06 (61.54 MiB)`
- `openZIM:mali-pour-les-nuls_fr_all:@2024-09-06 (61.54 MiB)`
> `--filename 'mali*' --filename 'eleda*'` matches two ZIMs:
- `openZIM:mali-pour-les-nuls_fr_all: @ 2024-09-06 (61.54 MiB)`
- `openZIM:eleda.education_fr_fo-offline: @ 2023-10-29 (50.03 MiB)`
- `openZIM:mali-pour-les-nuls_fr_all:@2024-09-06 (61.54 MiB)`
- `openZIM:eleda.education_fr_fo-offline:@2023-10-29 (50.03 MiB)`
> `--filename 'mali*' --filename 'eleda*' --lang fra` matches two ZIMs:
- `openZIM:mali-pour-les-nuls_fr_all: @ 2024-09-06 (61.54 MiB)`
- `openZIM:eleda.education_fr_fo-offline: @ 2023-10-29 (50.03 MiB)`
- `openZIM:mali-pour-les-nuls_fr_all:@2024-09-06 (61.54 MiB)`
- `openZIM:eleda.education_fr_fo-offline:@2023-10-29 (50.03 MiB)`
> `--filename 'mali*' --filename 'eleda*' --lang bam` matches zero ZIM
Expand Down
2 changes: 1 addition & 1 deletion src/kiwixseeder/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def run(self) -> int:
else:
raise exc

if self.fetch_catalog():
if self.fetch_catalog() and not context.dry_run:
logger.info("Catalog has not changed since last run, exiting.")
return 0
catalog_size = self.catalog.nb_books
Expand Down

0 comments on commit 91973f9

Please sign in to comment.