fix parsing db and tests

This commit is contained in:
qananasikq
2026-04-08 14:23:50 +03:00
parent fd1d1d3c9f
commit 3edd706110
7 changed files with 112 additions and 13 deletions

View File

@@ -130,7 +130,10 @@ class CarMapper:
"brand": brand, "model": model, "year": year, "price": price, "mileage": mileage,
"color": color, "drive": drive, "gearbox": gearbox, "body_type": body_type,
"engine_volume": engine_volume, "is_damaged": is_damaged, "is_sold": is_sold,
"image_count": len(images_records),
"country": country, "selling_type": "AUCTION", "one_owner": one_owner,
"new_car": new_car, "evaluation": evaluation, "non_smoking": non_smoking,
"rental": rental, "repair_history": repair_history,
"images": [image.fullres_image for image in images_records],
}, sort_keys=True, default=str).encode()).hexdigest()
return CarRecord(