Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
qcdyx committed Nov 29, 2024
1 parent aba9808 commit bae94e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions api/src/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,6 @@ def select(
self.logger.error(f"SELECT query failed with exception: \n{e}")
return None

# def get_session(self) -> Session:
# """
# :return: the current session
# """
# return self.session

def get_query_model(self, session: Session, model: Type[Base]) -> Query:
"""
:param model: the sqlalchemy model to query
Expand Down
2 changes: 1 addition & 1 deletion scripts/api-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# relative path
SCRIPT_PATH="$(dirname -- "${BASH_SOURCE[0]}")"
PORT=8080
(cd $SCRIPT_PATH/../api/src && uvicorn main:app --host 0.0.0.0 --port $PORT --workers 1 --env-file ../../config/.env.local)
(cd $SCRIPT_PATH/../api/src && uvicorn main:app --host 0.0.0.0 --port $PORT 1 --env-file ../../config/.env.local)

0 comments on commit bae94e0

Please sign in to comment.