diff --git a/tradein-mvp/backend/app/services/exporters/trade_in_pdf.py b/tradein-mvp/backend/app/services/exporters/trade_in_pdf.py index f7d0ac98..d68f68c9 100644 --- a/tradein-mvp/backend/app/services/exporters/trade_in_pdf.py +++ b/tradein-mvp/backend/app/services/exporters/trade_in_pdf.py @@ -244,7 +244,7 @@ def _build_cover( rooms_label = "Студия" if rooms == 0 else f"{rooms} комнат" + ("а" if rooms == 1 else "ы" if 2 <= rooms <= 4 else "") house_label = house_labels.get(house_type, "—") if house_type else "—" repair_label = repair_labels.get(repair_state, "Не указано") if repair_state else "Не указано" - balcony_label = "1" if has_balcony else "0" if has_balcony is False else "—" + balcony_label = "Есть" if has_balcony else "Нет" if has_balcony is False else "—" # Active market subband — 4-118 days range (как у Брусники). # Если есть days_on_market в analogs — берём min/max, иначе фиксированно. @@ -269,7 +269,7 @@ def _build_cover( ) qr_url = _qr_code_data_url( - f"{settings.public_url}/trade-in?id={estimate.estimate_id}", size=3 + f"{settings.public_url}?id={estimate.estimate_id}", size=3 ) return f""" @@ -332,7 +332,7 @@ def _build_cover(
- Этот отчёт онлайн: {settings.public_url}/trade-in?id={estimate.estimate_id} + Этот отчёт онлайн: {settings.public_url}?id={estimate.estimate_id}