Skip to content

Commit f643153

Browse files
authored
DATA-fix get latest (#955)
1 parent 4d6853f commit f643153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/viam/app/data_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ async def get_latest_tabular_data(
588588
resource_name=resource_name,
589589
resource_subtype=resource_api,
590590
method_name=method_name,
591-
additional_parameters=dict_to_struct(additional_params),
591+
additional_parameters=dict_to_struct(additional_params) if additional_params is not None else None,
592592
)
593593
response: GetLatestTabularDataResponse = await self._data_client.GetLatestTabularData(request, metadata=self._metadata)
594594
if not response.payload:
@@ -644,7 +644,7 @@ async def export_tabular_data(
644644
resource_subtype=resource_api,
645645
method_name=method_name,
646646
interval=interval,
647-
additional_parameters=dict_to_struct(additional_params),
647+
additional_parameters=dict_to_struct(additional_params) if additional_params is not None else None,
648648
)
649649
response: List[ExportTabularDataResponse] = await self._data_client.ExportTabularData(request, metadata=self._metadata)
650650

0 commit comments

Comments
 (0)