From a126c05365ed915b53a081588afa03c26271a409 Mon Sep 17 00:00:00 2001 From: machka-pasla Date: Wed, 6 Aug 2025 17:49:06 +0300 Subject: [PATCH] Refactor variable assignment in promo detail retrieval - Updated the variable assignment for the status emoji in the `get_promo_detail_text_and_keyboard` function to improve clarity and consistency in the code. - Enhanced readability by using more descriptive variable names, aligning with recent refactoring efforts in the promo management handler. --- bot/handlers/admin/promo/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/handlers/admin/promo/manage.py b/bot/handlers/admin/promo/manage.py index a4334ce..f8a5d97 100644 --- a/bot/handlers/admin/promo/manage.py +++ b/bot/handlers/admin/promo/manage.py @@ -39,7 +39,7 @@ async def get_promo_detail_text_and_keyboard(promo_id: int, session: AsyncSessio if not promo: return None, None - _, status = get_promo_status_emoji_and_text(promo, i18n, current_lang) + status_emoji, status = get_promo_status_emoji_and_text(promo, i18n, current_lang) validity = _("admin_promo_valid_indefinitely") if promo.valid_until: