in libmozdata/bugzilla.py [0:0]
def __get_bugs(self):
"""Get the bugs"""
header = self.get_header()
for bugids in Connection.chunks(
sorted(self.bugids, key=lambda k: int(k)),
chunk_size=Bugzilla.BUGZILLA_CHUNK_SIZE,
):
self.bugs_results.append(
self.session.get(
Bugzilla.API_URL,
params={
"id": ",".join(map(str, bugids)),
"include_fields": self.include_fields,
},
headers=header,
verify=True,
timeout=self.TIMEOUT,
hooks={"response": self.__bugs_cb},
)
)