@@ -300,7 +300,9 @@ async def tabular_data_by_mql(self, organization_id: str, mql_binary: List[bytes
300
300
response : TabularDataByMQLResponse = await self ._data_client .TabularDataByMQL (request , metadata = self ._metadata )
301
301
return [bson .decode (bson_bytes ) for bson_bytes in response .raw_data ]
302
302
303
- async def get_latest_tabular_data (self , part_id : str , resource_name : str , resource_subtype : str , method_name : str ) -> Optional [Tuple [datetime , datetime , Dict [str , ValueTypes ]]]:
303
+ async def get_latest_tabular_data (
304
+ self , part_id : str , resource_name : str , resource_subtype : str , method_name : str
305
+ ) -> Optional [Tuple [datetime , datetime , Dict [str , ValueTypes ]]]:
304
306
"""Gets the most recent tabular data captured from the specified data source, as long as it was synced within the last year.
305
307
306
308
::
@@ -328,11 +330,13 @@ async def get_latest_tabular_data(self, part_id: str, resource_name: str, resour
328
330
For more information, see `Data Client API <https://docs.viam.com/appendix/apis/data-client/>`_.
329
331
"""
330
332
331
- request = GetLatestTabularDataRequest (part_id = part_id , resource_name = resource_name , resource_subtype = resource_subtype , method_name = method_name )
333
+ request = GetLatestTabularDataRequest (
334
+ part_id = part_id , resource_name = resource_name , resource_subtype = resource_subtype , method_name = method_name
335
+ )
332
336
response : GetLatestTabularDataResponse = await self ._data_client .GetLatestTabularData (request , metadata = self ._metadata )
333
337
if not response .payload :
334
338
return None
335
- return response .time_captured .ToDatetime (), response .time_synced .ToDatetime (), struct_to_dict (response .payload )
339
+ return response .time_captured .ToDatetime (), response .time_synced .ToDatetime (), struct_to_dict (response .payload )
336
340
337
341
async def binary_data_by_filter (
338
342
self ,
0 commit comments