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 5, 2025
1 parent 91d8cab commit 0a0e846
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bot/modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
)
from .rss import get_rss_menu, rss_listener
from .search import initiate_search_tools, torrent_search, torrent_search_update
from .services import log, ping, start, log_callback
from .services import log, log_callback, ping, start
from .shell import run_shell
from .speedtest import speedtest
from .stats import bot_stats, get_packages_version
Expand Down
4 changes: 1 addition & 3 deletions bot/modules/mirror_leech.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,7 @@ async def new_event(self):
pssw = args["-ap"]
if ussr or pssw:
auth = f"{ussr}:{pssw}"
headers += (
f" authorization: Basic {b64encode(auth.encode()).decode('ascii')}"
)
headers += f" authorization: Basic {b64encode(auth.encode()).decode('ascii')}"
create_task(add_aria2c_download(self, path, headers, ratio, seed_time))
await delete_links(self.message)
return None
Expand Down
11 changes: 6 additions & 5 deletions bot/modules/services.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
from html import escape
from time import time
from uuid import uuid4
from html import escape

from aiofiles import open as aiopen

from bot import user_data, LOGGER
from bot import LOGGER, user_data
from bot.core.config_manager import Config
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.button_build import ButtonMaker
from bot.helper.telegram_helper.filters import CustomFilters
from bot.helper.telegram_helper.message_utils import (
delete_message,
edit_message,
five_minute_del,
send_file,
send_message,
five_minute_del,
)


Expand Down Expand Up @@ -126,4 +127,4 @@ def parseline(line):
await delete_message(message)
await five_minute_del(reply_message)
except Exception as err:
LOGGER.error(f"TG Log Display : {err!s}")
LOGGER.error(f"TG Log Display : {err!s}")

0 comments on commit 0a0e846

Please sign in to comment.