Tim Andersson has proposed merging
~andersson123/autopkgtest-cloud:amend_queue_size_json into
autopkgtest-cloud:master.
Requested reviews:
Canonical's Ubuntu QA (canonical-ubuntu-qa)
For more details, see:
https://code.launchpad.net/~andersson123/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/454863
--
Your team Canonical's Ubuntu QA is requested to review the proposed merge of
~andersson123/autopkgtest-cloud:amend_queue_size_json into
autopkgtest-cloud:master.
diff --git a/charms/focal/autopkgtest-web/webcontrol/browse.cgi b/charms/focal/autopkgtest-web/webcontrol/browse.cgi
index d7bc343..7826663 100755
--- a/charms/focal/autopkgtest-web/webcontrol/browse.cgi
+++ b/charms/focal/autopkgtest-web/webcontrol/browse.cgi
@@ -377,9 +377,9 @@ def queuesize_json():
for context in queue_info: # pylint: disable=consider-using-dict-items
for release in queue_info[context]:
for arch in queue_info[context][release]:
- # pylint: disable=unused-variable
- (queue_size, queue_items) = queue_info[context][release][arch]
- queue_info[context][release][arch] = len(queue_items)
+ queue_info[context][release][arch] = queue_info[context][
+ release
+ ][arch][0]
return json.dumps(queue_info, indent=2)
--
Mailing list: https://launchpad.net/~canonical-ubuntu-qa
Post to : [email protected]
Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa
More help : https://help.launchpad.net/ListHelp