From 0027fa7e63a325f87e3a3042d90a383b051fb9c7 Mon Sep 17 00:00:00 2001 From: Matt Webster Date: Mon, 19 Oct 2020 12:28:37 -0700 Subject: [PATCH] added TODOs --- server/api/code/lacity_data_api/routers/councils.py | 1 + server/api/code/lacity_data_api/routers/service_requests.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/server/api/code/lacity_data_api/routers/councils.py b/server/api/code/lacity_data_api/routers/councils.py index 44a3e2ba4..aa3d18ab7 100644 --- a/server/api/code/lacity_data_api/routers/councils.py +++ b/server/api/code/lacity_data_api/routers/councils.py @@ -18,6 +18,7 @@ async def get_council(id: int): return result.to_dict() +# TODO: add test @router.get("/{id}/open/counts/types") async def get_council_open_requests(id: int): result = await get_open_request_counts(id) diff --git a/server/api/code/lacity_data_api/routers/service_requests.py b/server/api/code/lacity_data_api/routers/service_requests.py index c5969f866..9216d5b60 100644 --- a/server/api/code/lacity_data_api/routers/service_requests.py +++ b/server/api/code/lacity_data_api/routers/service_requests.py @@ -21,6 +21,7 @@ async def get_all_service_requests(skip: int = 0, limit: int = 100): return result +# TODO: add test @router.get("/open", response_model=ServiceRequestList) async def get_open_service_requests(): result = await ServiceRequest.query.where( @@ -29,12 +30,14 @@ async def get_open_service_requests(): return result +# TODO: add test @router.get("/open/counts/types") async def get_open_counts_by_type(): result = await get_open_request_counts() return result +# TODO: add test @router.post("/pins", response_model=ServiceRequestList) async def get_service_request_pins(filters: Filters): result = await ServiceRequest.query.where( @@ -48,6 +51,7 @@ async def get_service_request_pins(filters: Filters): return result +# TODO: add test @router.post("/points") # , response_model=PointList) async def get_service_request_points(filters: Filters): result = await ServiceRequest.select(