Skip to content

Commit

Permalink
Testing data array issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Lippold authored and Ken Lippold committed Jun 14, 2024
1 parent 21dd984 commit 0ddd750
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
4 changes: 4 additions & 0 deletions src/sensorthings/extensions/dataarray/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@ def list_observations(
query_params=params.dict()
)

print(response)

if params.result_format == 'dataArray':
response = request.engine.convert_to_data_array( # noqa
response=response,
select=params.select
)

print(response)

return response


Expand Down
20 changes: 0 additions & 20 deletions src/sensorthings/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ def st_list(self, route, response_schemas: Tuple, *args, **kwargs):
The route path for the endpoint.
response_schemas : tuple
The tuple of response schemas for a successful response.
*args : tuple
Additional positional arguments for the route.
**kwargs : dict
Additional keyword arguments for the route.
Returns
-------
Expand Down Expand Up @@ -52,10 +48,6 @@ def st_get(self, route, response_schemas: Tuple, *args, **kwargs):
The route path for the endpoint.
response_schemas : tuple
The tuple of response schemas for a successful response.
*args : tuple
Additional positional arguments for the route.
**kwargs : dict
Additional keyword arguments for the route.
Returns
-------
Expand Down Expand Up @@ -84,10 +76,6 @@ def st_post(self, route, *args, **kwargs):
----------
route : str
The route path for the endpoint.
*args : tuple
Additional positional arguments for the route.
**kwargs : dict
Additional keyword arguments for the route. Excludes 'response' and 'response_schemas'.
Returns
-------
Expand All @@ -114,10 +102,6 @@ def st_patch(self, route, *args, **kwargs):
----------
route : str
The route path for the endpoint.
*args : tuple
Additional positional arguments for the route.
**kwargs : dict
Additional keyword arguments for the route. Excludes 'response' and 'response_schemas'.
Returns
-------
Expand Down Expand Up @@ -145,10 +129,6 @@ def st_delete(self, route, *args, **kwargs):
----------
route : str
The route path for the endpoint.
*args : tuple
Additional positional arguments for the route.
**kwargs : dict
Additional keyword arguments for the route. Excludes 'response' and 'response_schemas'.
Returns
-------
Expand Down

0 comments on commit 0ddd750

Please sign in to comment.