From 275c2a3d528cccc67bf8c1091f436276a1777f4c Mon Sep 17 00:00:00 2001 From: 5hojib Date: Sat, 4 Jan 2025 15:11:30 +0600 Subject: [PATCH] fix imports --- bot/__init__.py | 4 +--- bot/modules/services.py | 3 +++ update.py | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index 3bd63a714..87757fdeb 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -10,13 +10,11 @@ LogRecord, StreamHandler, basicConfig, - error, getLogger, - info, - warning, ) from socket import setdefaulttimeout from time import time +from datetime import datetime from apscheduler.schedulers.asyncio import AsyncIOScheduler from aria2p import API as ariaAPI # noqa: N811 diff --git a/bot/modules/services.py b/bot/modules/services.py index 9d3e03d27..b38977121 100644 --- a/bot/modules/services.py +++ b/bot/modules/services.py @@ -1,8 +1,10 @@ from time import time from uuid import uuid4 +from bot import 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 @@ -10,6 +12,7 @@ edit_message, send_file, send_message, + delete_message, ) diff --git a/update.py b/update.py index 70bc3550c..156fa36e3 100644 --- a/update.py +++ b/update.py @@ -9,6 +9,7 @@ basicConfig, getLogger, ) +from datetime import datetime from logging import ( error as log_error, )