in libmozdata/bugzilla.py [0:0]
def __get_bugs_list(self):
"""Get the bugs list corresponding to the search query"""
_list = set()
def cb(res, *args, **kwargs):
if res.status_code == 200:
for bug in res.json()["bugs"]:
_list.add(bug["id"])
elif self.RAISE_ERROR:
res.raise_for_status()
results = []
url = Bugzilla.API_URL + "?"
header = self.get_header()
for query in self.bugids:
results.append(
self.session.get(
url + query,
headers=header,
verify=True,
timeout=self.TIMEOUT,
hooks={"response": cb},
)
)
for r in results():
r.result()
return list(_list)