Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
-
Browse files Browse the repository at this point in the history
-
  • Loading branch information
tomorrow9913 committed Nov 27, 2023
1 parent ec27f31 commit 2143e42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
from starlette.config import Config

config = Config('.env')
DATABASE_URL = f"mariadb+mariadbconnector://:{config.get('PASSWORD')}@{config.get('HOST')}:{config.get('PORT')}/{config.get('DATABASE')}"

DATABASE_URL = f"mariadb+mariadbconnector://{config.get('USER')}:{config.get('PASSWORD')}@{config.get('HOST')}:{config.get('PORT')}/{config.get('DATABASE')}"
# Craate Engin for mariadb
engine = create_engine(DATABASE_URL, echo=False)

Expand Down
2 changes: 1 addition & 1 deletion routers/tag/tag_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
# Create
@router.post("/tag_list", response_model=tag.TagList)
def create_tag(tag_list: tag.TagStrList, db: Session = Depends(get_db)):
return {"tag_list": tag_crud.get_tag_info_list(db, tag_list.tag_list).tag_list}
return {"tag_list": tag_crud.get_tag_info_list(db, tag_list.tag_list)}


0 comments on commit 2143e42

Please sign in to comment.