From 44f067821c33e1c326dcc6f12ca4dbefcaae1f67 Mon Sep 17 00:00:00 2001 From: kalanakt Date: Sun, 28 Jan 2024 22:36:12 +0530 Subject: [PATCH] fix:pylintings --- Uploader/dl_button.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Uploader/dl_button.py b/Uploader/dl_button.py index 585c6169..00774722 100644 --- a/Uploader/dl_button.py +++ b/Uploader/dl_button.py @@ -1,11 +1,11 @@ """Module for handling download callback and related functions""" +import asyncio +from datetime import datetime +import logging import os import time import aiohttp -import asyncio -import logging -from datetime import datetime from Uploader.functions.display_progress import ( progress_for_pyrogram, humanbytes, @@ -40,7 +40,7 @@ async def ddl_call_back(bot, update): elif entity.type == "url": o = entity.offset length = entity.length - youtube_dl_url = youtube_dl_url[o : o + length] + youtube_dl_url = youtube_dl_url[o: o + length] if youtube_dl_url is not None: youtube_dl_url = youtube_dl_url.strip() if custom_file_name is not None: @@ -52,7 +52,7 @@ async def ddl_call_back(bot, update): elif entity.type == "url": o = entity.offset length = entity.length - youtube_dl_url = youtube_dl_url[o : o + length] + youtube_dl_url = youtube_dl_url[o: o + length] description = custom_file_name @@ -224,8 +224,8 @@ async def ddl_call_back(bot, update): disable_web_page_preview=True, ) - logger.info(f"Downloaded in: {str(time_taken_for_download)}") - logger.info(f"Uploaded in: {str(time_taken_for_upload)}") + logger.info("Downloaded in: %s", str(time_taken_for_download)) + logger.info("Uploaded in: %s", str(time_taken_for_upload)) else: await bot.edit_message_text( text=Translation.NO_VOID_FORMAT_FOUND.format("Incorrect Link"),