fix type hint in paths vs strings

This commit is contained in:
Viktor Barzin 2025-05-18 21:24:04 +00:00
parent 482fff689b
commit d9fe5421fc
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863

View file

@ -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))