From 1f83477c8ad2ec30ddda96bb9571c49c4c777b6c Mon Sep 17 00:00:00 2001 From: dromanov Date: Tue, 19 Sep 2023 00:12:11 +0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Refactor=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 -- filters/__init__.py | 2 +- handlers/groups/event_moderate.py | 2 +- handlers/users/__init__.py | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) 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