Add promo management action to admin panel and remove panel statistics retrieval

- Introduced a new action for managing promo codes within the admin panel, enhancing admin capabilities.
- Removed the panel statistics retrieval code from the statistics handler to streamline functionality and reduce complexity.
- Updated localization files to reflect changes related to promo management.
This commit is contained in:
machka-pasla
2025-08-03 21:27:46 +03:00
parent a5b408d204
commit ebca408227
2 changed files with 4 additions and 57 deletions
+4
View File
@@ -105,6 +105,10 @@ async def admin_panel_actions_callback_handler(
elif action == "view_logs_menu":
await admin_logs_handlers.display_logs_menu(callback, i18n_data,
settings, session)
elif action == "promo_management":
from . import promo_codes as admin_promo_handlers
await admin_promo_handlers.promo_management_handler(
callback, i18n_data, settings, session)
elif action == "sync_panel":
await admin_sync_handlers.sync_command_handler(