From 667c379b93b740339a324c18044539f3fc5af34c Mon Sep 17 00:00:00 2001 From: Anderson Banihirwe Date: Mon, 30 Oct 2023 14:28:28 -0700 Subject: [PATCH] formatting only --- carbonplan_offsets_db/models.py | 3 ++- carbonplan_offsets_db/routers/projects.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) 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