add json field to store any additional blob of data that may be missing; also populate db when dumping listings
This commit is contained in:
parent
8b2025e700
commit
b7a2ea75aa
5 changed files with 22 additions and 37 deletions
|
|
@ -156,7 +156,11 @@ def dump_listings(
|
|||
f"{query_parameters}"
|
||||
)
|
||||
data_dir_path = pathlib.Path(data_dir)
|
||||
asyncio.run(dump_listings_module.dump_listings(query_parameters, data_dir_path))
|
||||
listings = asyncio.run(
|
||||
dump_listings_module.dump_listings(query_parameters, data_dir_path)
|
||||
)
|
||||
repository = ListingRepository(engine=engine)
|
||||
asyncio.run(repository.upsert_listings(listings))
|
||||
|
||||
|
||||
@cli.command()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue