Skip to content

Commit

Permalink
refactor: changed back cmodels documents creation to main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jearistiz committed Apr 22, 2021
1 parent 76dedd9 commit ec83c82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import uvicorn

from src.config import settings
from src.use_cases.cmodels import CmodelUseCases


if __name__ == '__main__':
CmodelUseCases.update_cmodels_collection()
uvicorn.run(
"src.api:app",
host=settings['HOST'],
Expand Down
4 changes: 1 addition & 3 deletions src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from src.config import settings
from src.routers.main import main_router
from src.use_cases.cmodels import CmodelUseCases


app = FastAPI()

Expand All @@ -26,5 +26,3 @@
main_router,
tags=["Main"],
)

CmodelUseCases.update_cmodels_collection()

0 comments on commit ec83c82

Please sign in to comment.