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.
This commit is contained in:
machka-pasla
2025-08-06 17:49:06 +03:00
parent d0c09f9e06
commit a126c05365
+1 -1
View File
@@ -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: