Skip to content

Commit 5bb2618

Browse files
committed
zoom2
1 parent c88b6b5 commit 5bb2618

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

zoomeye/sdk.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def dork_search(self, dork, page=0, resource="host", facets=None):
160160
A comma-separated list of properties to get summary information
161161
"""
162162

163-
result = []
163+
zoomresult = []
164164
self.search_type = resource
165165
search_api = self.search_api.format(resource)
166166
if isinstance(facets, (tuple, list)):
@@ -170,13 +170,13 @@ def dork_search(self, dork, page=0, resource="host", facets=None):
170170
resp = self._request(search_api, params=params, headers=headers)
171171
if resp and "matches" in resp:
172172
matches = resp.get('matches')
173-
result = matches
173+
zoomresult = matches
174174
self.raw_data = resp
175175
self.data_list = matches
176176
self.facet_data = resp.get("facets")
177177
self.total = resp.get("total")
178178

179-
return result
179+
return zoomresult
180180

181181
def multi_page_search(self, dork, page=1, resource="host",
182182
facets=None) -> list:

0 commit comments

Comments
 (0)