From 5f00d678dbf4d497175f868ae14d5ab63c5a7d80 Mon Sep 17 00:00:00 2001 From: 5hojib Date: Wed, 1 Jan 2025 09:16:19 +0600 Subject: [PATCH] fix logic --- bot/modules/mirror_leech.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/modules/mirror_leech.py b/bot/modules/mirror_leech.py index 316b2dd89..72f28fa79 100644 --- a/bot/modules/mirror_leech.py +++ b/bot/modules/mirror_leech.py @@ -292,10 +292,10 @@ async def new_event(self): self.link = await reply_to.download() file_ = None - if (self.link and - (is_magnet(self.link) - or self.link.endswith(".torrent"))) - or (file_ and file_.file_name.endswith(".torrent")): + if ( + (self.link and (is_magnet(self.link) or self.link.endswith(".torrent"))) + or (file_ and file_.file_name.endswith(".torrent")) + ): self.is_qbit = True if (