Skip to content

Commit

Permalink
[Patch] Wrong typing in router (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kangji authored Nov 23, 2023
2 parents f05c228 + 20f7ec4 commit 63a4d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastapi/src/chatting/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from src.chatting import service
from src.chatting.dependencies import *
from src.chatting.exceptions import *
from src.chatting.intimacy.calculator import *
from src.chatting.mapper import *
from src.chatting.schemas import *
from src.database import DbConnector
Expand Down Expand Up @@ -113,7 +114,7 @@ def get_all_texts(seq_id: int = Query(-1, description="if specified, returns the
.build()
)
def create_intimacy(chatting_id: int, user_id: int = Depends(check_session),
calculator: service.IntimacyCalculator = Depends(
calculator: IntimacyCalculator = Depends(
get_intimacy_calculator),
db: DbSession = Depends(DbConnector.get_db)) -> IntimacyResponse:
recent_intimacy, is_default = service.get_intimacy(
Expand Down Expand Up @@ -153,7 +154,6 @@ def create_intimacy(chatting_id: int, user_id: int = Depends(check_session),
.add(InvalidSessionException())
.build()
)

def get_topic_recommendation(
chatting_id: int,
limit: int = Query(
Expand Down

0 comments on commit 63a4d4a

Please sign in to comment.