File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 44
55import datetime
66import io
7- from typing import List
7+ from typing import List , Optional
88from urllib .parse import urljoin
99
1010import requests
2121from vws .reports import QueryResult , TargetData
2222
2323
24- def _cloud_reco_response_item_to_query_result ():
25- pass
26-
27-
2824class CloudRecoService :
2925 """
3026 An interface to the Vuforia Cloud Recognition Web APIs.
@@ -142,6 +138,7 @@ def query(
142138 result = []
143139 result_list = list (response .json ()['results' ])
144140 for item in result_list :
141+ target_data : Optional [TargetData ] = None
145142 if 'target_data' in item :
146143 target_data_dict = item ['target_data' ]
147144 metadata = target_data_dict ['application_metadata' ]
@@ -154,8 +151,6 @@ def query(
154151 application_metadata = metadata ,
155152 target_timestamp = target_timestamp ,
156153 )
157- else :
158- target_data = None
159154
160155 query_result = QueryResult (
161156 target_id = item ['target_id' ],
You can’t perform that action at this time.
0 commit comments