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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user