add default dir path for image dumps
This commit is contained in:
parent
3d024277fb
commit
84a55eefde
1 changed files with 4 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue