From 84a55eefde7ec9ae0ecbd0e10588c5f7f4c61799 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 22 Jun 2025 21:15:50 +0000 Subject: [PATCH] add default dir path for image dumps --- crawler/3_dump_images.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crawler/3_dump_images.py b/crawler/3_dump_images.py index 0ef3129..6505540 100644 --- a/crawler/3_dump_images.py +++ b/crawler/3_dump_images.py @@ -12,7 +12,10 @@ from models import Listing semaphore = asyncio.Semaphore(10) -async def dump_images(repository: ListingRepository, image_base_path: Path): +async def dump_images( + repository: ListingRepository, + image_base_path: Path = Path("data/rs/"), +): listings = await repository.get_listings() updated_listings = await tqdm.gather( *[dump_images_for_listing(listing, image_base_path) for listing in listings]