Skip to content

Commit 18b0c73

Browse files
committed
fix: web availability
1 parent cc1dde8 commit 18b0c73

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ rsetl enrich-publications --dry-run
160160

161161
### `rsetl run-webavailability`
162162

163-
Run the daily web availability update and ensure ToolsDev URLs exist.
163+
Run the daily web availability update and ensure toolsDev URLs exist.
164164

165165
Additional arguments are passed through to the web availability job.
166166

src/adapters/cli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def main(argv: list[str] | None = None) -> int:
166166
# --- run-webavailability ----------------------------------------------------
167167
wa_p = subparsers.add_parser(
168168
"run-webavailability",
169-
help="Run daily web availability update (and ensure ToolsDev URLs exist)",
169+
help="Run daily web availability update (and ensure toolsDev URLs exist)",
170170
)
171171
wa_p.add_argument(
172172
"wa_args",

src/adapters/cli/web_availability.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
def build_parser() -> argparse.ArgumentParser:
1515
ap = argparse.ArgumentParser(
16-
description="Daily update of web availability + ensure URLs from ToolsDev exist."
16+
description="Daily update of web availability + ensure URLs from toolsDev exist."
1717
)
1818
ap.add_argument("--web-coll", default=os.getenv("MONGO_WEBAV_COLL", "webAvailabilityDev"))
19-
ap.add_argument("--tools-coll", default=os.getenv("MONGO_TOOLS_COLL", "ToolsDev"))
19+
ap.add_argument("--tools-coll", default=os.getenv("MONGO_TOOLS_COLL", "toolsDev"))
2020
ap.add_argument("--timeout", type=int, default=int(os.getenv("REQ_TIMEOUT", "15")))
2121
ap.add_argument("--keep-days", type=int, default=int(os.getenv("KEEP_DAYS", "365")))
2222
ap.add_argument("--created-by", default=os.getenv("CREATED_BY", "oeb-ingest"))
@@ -51,7 +51,7 @@ def main(argv: list[str] | None = None) -> int:
5151
f"{res.processed_existing_urls} (step1 errors: {res.step1_errors})"
5252
)
5353
print(
54-
"[STEP 2] ToolsDev unique URLs: "
54+
"[STEP 2] toolsDev unique URLs: "
5555
f"{res.tools_unique_urls} | already present: {res.tools_urls_already_present} | missing: {res.tools_urls_missing}"
5656
)
5757
print(

src/application/use_cases/web_availability/update_web_availability_daily.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def build_availability_entry(code: Optional[int], access_time: Optional[float])
6060
@dataclass(frozen=True)
6161
class WebAvailabilityDailyConfig:
6262
web_collection: str = "webAvailabilityDev"
63-
tools_collection: str = "ToolsDev"
63+
tools_collection: str = "toolsDev"
6464
timeout: int = DEFAULT_TIMEOUT
6565
keep_days: int = 365
6666
created_by: str = "oeb-ingest"

0 commit comments

Comments
 (0)