Skip to content

Commit

Permalink
♻️ Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidRomanovizc committed Sep 18, 2023
1 parent 7908a1f commit 1f83477
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ def setup(dp: Dispatcher):
dp.message_handlers,
dp.edited_message_handlers,
]

logger.info(text_messages)
dp.filters_factory.bind(IsPrivate)
2 changes: 1 addition & 1 deletion handlers/groups/event_moderate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("-")
Expand Down
1 change: 0 additions & 1 deletion handlers/users/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f83477

Please sign in to comment.