Skip to content

Commit

Permalink
fixed import error, init app
Browse files Browse the repository at this point in the history
  • Loading branch information
HMnesterov committed Sep 10, 2023
1 parent fa8896a commit a6db079
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/telegram/mybot/api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from .deps import *
from .dao import *

from .events import *
from app.telegram.mybot.handlers.commands import *
2 changes: 1 addition & 1 deletion core/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware

from app.telegram.api import app as telegram_app
from app.telegram.mybot.api import app as telegram_app
from app.auth.api import app as auth_app
app = FastAPI()

Expand Down
2 changes: 1 addition & 1 deletion core/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async def on_startup():
modules={

"migrate": ["core.migrate"],
"models": []
"models": ["app.telegram.mybot.dao"]
}
)
await migrate()
Expand Down

0 comments on commit a6db079

Please sign in to comment.