add
This commit is contained in:
@@ -97,6 +97,7 @@ def format_issued_access(
|
||||
expire_at: datetime,
|
||||
traffic_limit_bytes: int,
|
||||
brand_name: str = "",
|
||||
success_text: str = "",
|
||||
is_renewal: bool = False,
|
||||
) -> str:
|
||||
normalized_brand_name = html.escape(brand_name.strip()) if brand_name.strip() else "VPN"
|
||||
@@ -142,6 +143,13 @@ def format_issued_access(
|
||||
"",
|
||||
"<i>Если ссылка не открывается автоматически, скопируйте её в клиент вручную.</i>",
|
||||
]
|
||||
normalized_success_text = success_text.strip()
|
||||
if normalized_success_text:
|
||||
lines[7:7] = [
|
||||
"<b>Информация</b>",
|
||||
f"<blockquote>{html.escape(normalized_success_text)}</blockquote>",
|
||||
"",
|
||||
]
|
||||
return "\n".join(lines)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user