From d9fe5421fcab3c0af27311fa892844589e239a09 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 18 May 2025 21:24:04 +0000 Subject: [PATCH] fix type hint in paths vs strings --- crawler/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawler/main.py b/crawler/main.py index 165a190..c82a00e 100644 --- a/crawler/main.py +++ b/crawler/main.py @@ -222,7 +222,7 @@ def export_csv(ctx: click.core.Context, output_file: str, columns: tuple[str]): click.echo(f'Exporting data to {output_file} using {data_dir=}') output_file_path = pathlib.Path(output_file) listing_paths = sorted(list(pathlib.Path(data_dir).glob("*/listing.json"))) - listings = Listing.get_all_listings(listing_paths) + listings = Listing.get_all_listings([str(path) for path in listing_paths]) csv_exporter.export_to_csv(listings, output_file_path, list(columns))