From 1356170fb0bf27ccf5e9e6c41b4bd8fc6af59ccc Mon Sep 17 00:00:00 2001 From: Vladless Date: Thu, 1 May 2025 21:22:40 +0300 Subject: [PATCH] merdge --- handlers/notifications/general_notifications.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/handlers/notifications/general_notifications.py b/handlers/notifications/general_notifications.py index 4c26d80a..79449e39 100644 --- a/handlers/notifications/general_notifications.py +++ b/handlers/notifications/general_notifications.py @@ -47,7 +47,6 @@ from handlers.texts import ( ) from handlers.utils import format_hours, format_minutes from logger import logger -from handlers.utils import format_hours, format_months, format_minutes from .notify_utils import send_messages_with_limit, send_notification from .special_notifications import notify_inactive_trial_users, notify_users_no_traffic @@ -420,9 +419,7 @@ async def process_auto_renew_or_notify( ) renewed_message = KEY_RENEWED.format( - email=email, - months_formatted=months_formatted, - expiry_date=formatted_expiry_date + email=email, months=renewal_period_months, expiry_date=formatted_expiry_date ) keyboard = build_notification_expired_kb() @@ -444,4 +441,4 @@ async def process_auto_renew_or_notify( logger.info(f"📢 Отправлено уведомление об истекающей подписке {email} пользователю {tg_id}.") await add_notification(tg_id, notification_id, session=conn) else: - logger.warning(f"📢 Не удалось отправить уведомление об истекающей подписке {email} пользователю {tg_id}.") + logger.warning(f"📢 Не удалось отправить уведомление об истекающей подписке {email} пользователю {tg_id}.") \ No newline at end of file