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