Add timing debug
All checks were successful
buildbot/multibuild_parent Build done.
buildbot/travis_bionic Build done.

This commit is contained in:
Peter Šurda 2024-04-15 17:42:35 +08:00
parent 74b6d0ee83
commit 1d59834e55
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -22,6 +22,7 @@ def get_combined(token):
req.add_header("Content-Type", "application/json") req.add_header("Content-Type", "application/json")
req.add_header("Authorization", "token " + token) req.add_header("Authorization", "token " + token)
print(f"Requesting and parsing {q}")
with urllib.request.urlopen(req) \ with urllib.request.urlopen(req) \
as response: as response:
issues = json.load(response) issues = json.load(response)
@ -32,6 +33,7 @@ def get_combined(token):
else: else:
combined[_id] = issue combined[_id] = issue
combined[_id]['categories'] = [q] combined[_id]['categories'] = [q]
print(f"Done processing {q}")
return combined return combined
def process_combined(combined): def process_combined(combined):