migrate dump images command to use model listings

This commit is contained in:
Viktor Barzin 2025-06-07 13:56:00 +00:00
parent 4f5a934fa9
commit ba87d07cd2
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
6 changed files with 99 additions and 20 deletions

View file

@ -65,7 +65,7 @@ async def dump_listings(
for listing, detail in zip(listings_without_details, listing_details):
listing._details_object = detail
model_listings = await repository.upsert_listings(listings) # upsert in db
model_listings = await repository.upsert_listings_legacy(listings) # upsert in db
await dump_listings_to_fs(listings)
return model_listings