Skip to content

Commit

Permalink
Auto-format code [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 4, 2025
1 parent 7e1c9ab commit 8d1e783
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bot/helper/ext_utils/db_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def rm_pm_user(self, user_id):
if self._return:
return
await self._db.pm_users[TgClient.ID].delete_one({"_id": user_id})

async def update_user_tdata(self, user_id, token, time):
if self._return:
return
Expand Down
5 changes: 0 additions & 5 deletions bot/modules/broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@
from time import time

from pyrogram.errors import FloodWait, InputUserDeactivated, UserIsBlocked
from pyrogram.filters import command
from pyrogram.handlers import MessageHandler

from bot import bot
from bot.helper.ext_utils.bot_utils import new_task
from bot.helper.ext_utils.db_handler import database
from bot.helper.ext_utils.status_utils import get_readable_time
from bot.helper.telegram_helper.bot_commands import BotCommands
from bot.helper.telegram_helper.filters import CustomFilters
from bot.helper.telegram_helper.message_utils import edit_message, send_message


Expand Down
11 changes: 2 additions & 9 deletions bot/modules/mirror_leech.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,8 @@ async def new_event(self):
file_ = None

if (
self.link
and (
is_magnet(self.link)
or self.link.endswith(".torrent")
)
) or (
file_
and getattr(file_, "file_name", "").endswith(".torrent")
):
self.link and (is_magnet(self.link) or self.link.endswith(".torrent"))
) or (file_ and getattr(file_, "file_name", "").endswith(".torrent")):
self.is_qbit = True

if (
Expand Down

0 comments on commit 8d1e783

Please sign in to comment.