Skip to content

Commit

Permalink
fix #118
Browse files Browse the repository at this point in the history
use from `__init__` import
  • Loading branch information
BennyThink committed Jan 1, 2024
1 parent dbe57d8 commit 28ec5cb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ COPY --from=builder /root/.local /usr/local
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY . /SearchGram

ENTRYPOINT ["/usr/local/bin/python"]
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
volumes:
- ./sg_data/session:/SearchGram/searchgram/session
command:
- client.py
- python client.py

bot:
image: bennythink/searchgram
Expand All @@ -19,7 +19,7 @@ services:
volumes:
- ./sg_data/session:/SearchGram/searchgram/session
command:
- bot.py
- python bot.py

meili:
image: getmeili/meilisearch:v1.1.1
Expand Down
2 changes: 1 addition & 1 deletion searchgram/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from pyrogram import Client, enums, filters, types
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup

from __init__ import SearchEngine
from config import OWNER_ID, TOKEN
from init_client import get_client
from searchgram import SearchEngine
from utils import setup_logger

tgdb = SearchEngine()
Expand Down
2 changes: 1 addition & 1 deletion searchgram/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import fakeredis
from pyrogram import Client, filters, types

from __init__ import SearchEngine
from config import BOT_ID
from init_client import get_client
from searchgram import SearchEngine
from utils import setup_logger

setup_logger()
Expand Down

0 comments on commit 28ec5cb

Please sign in to comment.