Compare commits

..

No commits in common. "3dcddae647bdd43b0bf74b6ef4b95271e0a77f79" and "3ffba9f8a8e054b59a31d1f49a75e2e600358002" have entirely different histories.

View file

@ -449,12 +449,7 @@ def _dual_price_block(estimate: AggregatedEstimate, brand) -> str: # type: igno
def _build_cover(estimate: AggregatedEstimate, input_snapshot: dict, brand) -> str: # type: ignore[no-untyped-def,type-arg]
today = dt.date.today()
# Используем реальное поле expires_at из оценки; fallback на +30 дней если None.
expires = (
estimate.expires_at.date()
if estimate.expires_at is not None
else today + dt.timedelta(days=30)
)
expires = today + dt.timedelta(days=30)
report_num = _report_number(estimate.estimate_id)
# Короткий адрес (для cover): берём первую часть до запятой