From 185d05d397986e444e73cbdc6f520dba9dd7c036 Mon Sep 17 00:00:00 2001 From: Benny Date: Sat, 18 Nov 2023 18:13:26 +0100 Subject: [PATCH] sort them --- searchgram/bot.py | 2 +- searchgram/client.py | 2 +- searchgram/meili.py | 4 ++-- searchgram/mongo.py | 3 +-- searchgram/zinc.py | 3 ++- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/searchgram/bot.py b/searchgram/bot.py index bc68ff4..3ef817a 100644 --- a/searchgram/bot.py +++ b/searchgram/bot.py @@ -14,8 +14,8 @@ from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup from config import OWNER_ID, TOKEN -from searchgram import SearchEngine from init_client import get_client +from searchgram import SearchEngine from utils import setup_logger tgdb = SearchEngine() diff --git a/searchgram/client.py b/searchgram/client.py index ad84ee1..51cd077 100644 --- a/searchgram/client.py +++ b/searchgram/client.py @@ -17,8 +17,8 @@ from pyrogram import Client, filters, types from config import BOT_ID -from searchgram import SearchEngine from init_client import get_client +from searchgram import SearchEngine from utils import setup_logger setup_logger() diff --git a/searchgram/meili.py b/searchgram/meili.py index 68325d2..0bd1991 100644 --- a/searchgram/meili.py +++ b/searchgram/meili.py @@ -8,12 +8,12 @@ __author__ = "Benny " import logging -from engine import BasicSearchEngine import meilisearch -from utils import sizeof_fmt from config import MEILI_HOST, MEILI_PASS +from engine import BasicSearchEngine +from utils import sizeof_fmt class SearchEngine(BasicSearchEngine): diff --git a/searchgram/mongo.py b/searchgram/mongo.py index 45198bb..dcea0a1 100644 --- a/searchgram/mongo.py +++ b/searchgram/mongo.py @@ -12,9 +12,8 @@ import zhconv from config import MONGO_HOST -from utils import sizeof_fmt - from engine import BasicSearchEngine +from utils import sizeof_fmt class SearchEngine(BasicSearchEngine): diff --git a/searchgram/zinc.py b/searchgram/zinc.py index df71a25..2301007 100644 --- a/searchgram/zinc.py +++ b/searchgram/zinc.py @@ -4,9 +4,10 @@ # SearchGram - zinc.py # 2023-11-18 18:04 -from utils import sizeof_fmt import zincsearch_sdk + from engine import BasicSearchEngine +from utils import sizeof_fmt class SearchEngine(BasicSearchEngine):