Skip to content

Commit

Permalink
Переработаны валидаторы. В CRUDBase заменены методы для извлечения об…
Browse files Browse the repository at this point in the history
…ъекта из БД на 1 универсальный get_by_attr(), переработан код эндпоинтов.
  • Loading branch information
CuriousGecko committed Jul 21, 2024
1 parent fe7add9 commit 52952fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/crud/base.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
from http import HTTPStatus
from typing import Optional

from fastapi import HTTPException
from fastapi.encoders import jsonable_encoder
from sqlalchemy import select
from sqlalchemy.ext.asyncio import AsyncSession

from app.api.validators import check_obj_exists
from app.models import User


Expand Down

0 comments on commit 52952fd

Please sign in to comment.