fix type hint in paths vs strings
This commit is contained in:
parent
482fff689b
commit
d9fe5421fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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=}')
|
click.echo(f'Exporting data to {output_file} using {data_dir=}')
|
||||||
output_file_path = pathlib.Path(output_file)
|
output_file_path = pathlib.Path(output_file)
|
||||||
listing_paths = sorted(list(pathlib.Path(data_dir).glob("*/listing.json")))
|
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))
|
csv_exporter.export_to_csv(listings, output_file_path, list(columns))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue