Skip to content

Commit 91973f9

Browse files
committed
Allow re-querying catalog in dry-run mode
1 parent 708b006 commit 91973f9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ lint = [
3737
"ruff==0.8.4",
3838
]
3939
check = [
40-
"pyright==1.1.392.post0",
40+
"pyright==1.1.393",
4141
]
4242
test = [
4343
"pytest==8.3.4",

src/kiwixseeder/entrypoint.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@
4646
4747
> `--filename 'mali*'` matches a single ZIM:
4848
49-
- `openZIM:mali-pour-les-nuls_fr_all: @ 2024-09-06 (61.54 MiB)`
49+
- `openZIM:mali-pour-les-nuls_fr_all:@2024-09-06 (61.54 MiB)`
5050
5151
> `--filename 'mali*' --filename 'eleda*'` matches two ZIMs:
5252
53-
- `openZIM:mali-pour-les-nuls_fr_all: @ 2024-09-06 (61.54 MiB)`
54-
- `openZIM:eleda.education_fr_fo-offline: @ 2023-10-29 (50.03 MiB)`
53+
- `openZIM:mali-pour-les-nuls_fr_all:@2024-09-06 (61.54 MiB)`
54+
- `openZIM:eleda.education_fr_fo-offline:@2023-10-29 (50.03 MiB)`
5555
5656
> `--filename 'mali*' --filename 'eleda*' --lang fra` matches two ZIMs:
5757
58-
- `openZIM:mali-pour-les-nuls_fr_all: @ 2024-09-06 (61.54 MiB)`
59-
- `openZIM:eleda.education_fr_fo-offline: @ 2023-10-29 (50.03 MiB)`
58+
- `openZIM:mali-pour-les-nuls_fr_all:@2024-09-06 (61.54 MiB)`
59+
- `openZIM:eleda.education_fr_fo-offline:@2023-10-29 (50.03 MiB)`
6060
6161
> `--filename 'mali*' --filename 'eleda*' --lang bam` matches zero ZIM
6262

src/kiwixseeder/runner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def run(self) -> int:
4444
else:
4545
raise exc
4646

47-
if self.fetch_catalog():
47+
if self.fetch_catalog() and not context.dry_run:
4848
logger.info("Catalog has not changed since last run, exiting.")
4949
return 0
5050
catalog_size = self.catalog.nb_books

0 commit comments

Comments
 (0)