fix: include desired_commission_percent in admin notification

Add the field to the notification data dict and render it in the
Telegram message sent to admins on new partner applications.
This commit is contained in:
Fringg
2026-02-27 04:08:10 +03:00
parent 7ea8fbd584
commit dc3d22f52d
2 changed files with 3 additions and 0 deletions
@@ -142,6 +142,7 @@ async def apply_for_partner(
'website_url': request.website_url,
'description': request.description,
'expected_monthly_referrals': request.expected_monthly_referrals,
'desired_commission_percent': request.desired_commission_percent,
},
)
finally:
@@ -1688,6 +1688,8 @@ class AdminNotificationService:
message_lines.append(f'📝 {html.escape(desc)}')
if application_data.get('expected_monthly_referrals'):
message_lines.append(f'👥 Ожидаемых рефералов: {application_data["expected_monthly_referrals"]}/мес')
if application_data.get('desired_commission_percent'):
message_lines.append(f'💰 Желаемая комиссия: {application_data["desired_commission_percent"]}%')
message_lines.extend(
[