projects-fix: убрал пагинацию в проектах
This commit is contained in:
parent
0245b0c3b2
commit
3d75e1960e
@ -74,8 +74,6 @@ async def get_projects(
|
|||||||
|
|
||||||
@router.get("/projects/with-reports")
|
@router.get("/projects/with-reports")
|
||||||
async def get_projects_with_reports(
|
async def get_projects_with_reports(
|
||||||
offset: int = 0,
|
|
||||||
limit: int = 100,
|
|
||||||
year: Optional[int] = None,
|
year: Optional[int] = None,
|
||||||
branch_id: Optional[int] = None,
|
branch_id: Optional[int] = None,
|
||||||
db: AsyncSession = Depends(get_db),
|
db: AsyncSession = Depends(get_db),
|
||||||
@ -87,8 +85,6 @@ async def get_projects_with_reports(
|
|||||||
with_count=True,
|
with_count=True,
|
||||||
year=year,
|
year=year,
|
||||||
branch_id=branch_id,
|
branch_id=branch_id,
|
||||||
offset=offset,
|
|
||||||
limit=limit,
|
|
||||||
)
|
)
|
||||||
return BaseListResponse(result=projects, count=count)
|
return BaseListResponse(result=projects, count=count)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user