diff --git a/app.py b/app.py index c66b6aea..7f1e3e74 100644 --- a/app.py +++ b/app.py @@ -7,10 +7,8 @@ # noinspection PyUnresolvedReferences import filters - # noinspection PyUnresolvedReferences from django_project.telegrambot.telegrambot import settings - # noinspection PyUnresolvedReferences from loader import dp, db, scheduler from utils.db_api.db_commands import reset_view_limit diff --git a/filters/__init__.py b/filters/__init__.py index b570b47a..910b30f2 100644 --- a/filters/__init__.py +++ b/filters/__init__.py @@ -10,5 +10,5 @@ def setup(dp: Dispatcher): dp.message_handlers, dp.edited_message_handlers, ] - + logger.info(text_messages) dp.filters_factory.bind(IsPrivate) diff --git a/handlers/groups/event_moderate.py b/handlers/groups/event_moderate.py index b967c389..ad8f81c5 100644 --- a/handlers/groups/event_moderate.py +++ b/handlers/groups/event_moderate.py @@ -13,7 +13,7 @@ # FIXME: Broken handler @dp.callback_query_handler( IsAdmin(), - lambda call: str(call.message.chat.id) == load_config().tg_bot.moderate_chat + lambda call: str(call.message.chat.id) == load_config().tg_bot.moderate_chat, ) async def order_answer(call: CallbackQuery) -> None: call_data = call.data.split("-") diff --git a/handlers/users/__init__.py b/handlers/users/__init__.py index 0004f0a1..6d3d2a3d 100644 --- a/handlers/users/__init__.py +++ b/handlers/users/__init__.py @@ -9,7 +9,6 @@ from . import view_ques from . import view_event from . import event_list -from . import sponsor from . import event_handler from . import support_handler from . import filters