mirror of
https://github.com/StepanovPlaton/torrent_backend.git
synced 2026-04-03 20:30:38 +04:00
Work on game form
This commit is contained in:
@@ -51,6 +51,7 @@ async def delete_game(game_id: int,
|
||||
user: db.User = Depends(get_user),
|
||||
db_session: AsyncSession = Depends(db.get_session)):
|
||||
game_db = await db.get_game(db_session, game_id)
|
||||
print(game_db)
|
||||
if (game_db is None):
|
||||
raise HTTPException(status.HTTP_404_NOT_FOUND,
|
||||
detail=f"Game with id={game_id} not found")
|
||||
|
||||
Reference in New Issue
Block a user