Skip to content

Commit 1d2b85f

Browse files
authored
Merge pull request #104 from ybx0505/master
zoom2
2 parents 3925940 + 5bb2618 commit 1d2b85f

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
@@ -161,7 +161,7 @@ def dork_search(self, dork, page=0, resource="host", facets=None):
161161
A comma-separated list of properties to get summary information
162162
"""
163163

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

180-
return result
180+
return zoomresult
181181

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

0 commit comments

Comments
 (0)