diff --git a/carbonplan_offsets_db/models.py b/carbonplan_offsets_db/models.py index 1f48775..250fd67 100644 --- a/carbonplan_offsets_db/models.py +++ b/carbonplan_offsets_db/models.py @@ -163,7 +163,8 @@ class ProjectBinnedCreditsTotals(pydantic.BaseModel): class PaginatedBinnedCreditTotals(pydantic.BaseModel): pagination: Pagination data: list[ProjectBinnedCreditsTotals] - + + class ClipWithPagination(pydantic.BaseModel): pagination: Pagination data: list[Clip] diff --git a/carbonplan_offsets_db/routers/projects.py b/carbonplan_offsets_db/routers/projects.py index 06dd4c5..9967444 100644 --- a/carbonplan_offsets_db/routers/projects.py +++ b/carbonplan_offsets_db/routers/projects.py @@ -6,8 +6,7 @@ from ..database import get_session from ..logging import get_logger -from ..models import PaginatedProjects, Project -from ..models import Clip, Project, ProjectWithClips, ProjectWithPagination +from ..models import Clip, PaginatedProjects, Project, ProjectWithClips from ..query_helpers import apply_filters, apply_sorting, handle_pagination from ..schemas import Pagination, Registries