From fa1317a5fbaddbd443b10f5bf3e101d86fbb44c2 Mon Sep 17 00:00:00 2001 From: Max Shalenkov Date: Wed, 13 Aug 2025 15:58:45 +0400 Subject: [PATCH] fix imports --- handlers/notifications/general_notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers/notifications/general_notifications.py b/handlers/notifications/general_notifications.py index 70eccb03..8e7d9541 100644 --- a/handlers/notifications/general_notifications.py +++ b/handlers/notifications/general_notifications.py @@ -53,6 +53,8 @@ from .hot_leads_notifications import notify_hot_leads from .notify_utils import send_messages_with_limit, send_notification from .special_notifications import notify_inactive_trial_users, notify_users_no_traffic +from hooks.hooks import run_hooks + router = Router() moscow_tz = pytz.timezone("Europe/Moscow") @@ -109,7 +111,6 @@ async def periodic_notifications(bot: Bot, *, sessionmaker: async_sessionmaker): except Exception as e: logger.error(f"Ошибка в notify_users_no_traffic: {e}") try: - from hooks.hooks import run_hooks await run_hooks("periodic_notifications", bot=bot, session=session, keys=keys) except Exception as e: logger.error(f"Ошибка в хуках periodic_notifications: {e}")