diff --git a/src/wordle/constants.py b/src/wordle/constants.py index 5b0edde..91b4776 100644 --- a/src/wordle/constants.py +++ b/src/wordle/constants.py @@ -13,4 +13,4 @@ class GameStatus(Enum): class WordTypes(Enum): CORRECT: str = 'GREEN' WRONG_PLACE: str = 'YELLOW' - NOT_CORRECT: str = 'RED' + NOT_CORRECT: str = 'BLACK' diff --git a/src/wordle/views.py b/src/wordle/views.py index 18eee68..26125da 100644 --- a/src/wordle/views.py +++ b/src/wordle/views.py @@ -40,23 +40,23 @@ async def create_game_session( return GameSessionResponse(session_id=session_id) -@router.get( - path='/game_sessions', - summary=( - 'Получить список всех игровых сессий которые были у пользователя' - ), -) -async def get_game_sessions( - token_payload: Annotated[ - Dict[str, Any], - Depends(validate_access_token), - ], -) -> GameSessionsResponse: - user = await get_current_active_auth_user(token_payload) +# @router.get( +# path='/game_sessions', +# summary=( +# 'Получить список всех игровых сессий которые были у пользователя' +# ), +# ) +# async def get_game_sessions( +# token_payload: Annotated[ +# Dict[str, Any], +# Depends(validate_access_token), +# ], +# ) -> GameSessionsResponse: +# user = await get_current_active_auth_user(token_payload) - return GameSessionsResponse( - user_sessions=await get_all_user_gamesessions(user.id), - ) +# return GameSessionsResponse( +# user_sessions=await get_all_user_gamesessions(user.id), +# ) @router.post(