From 26835615e93042f7bbba86f16614acedc0802ad1 Mon Sep 17 00:00:00 2001 From: isabelrios Date: Thu, 3 Oct 2024 15:06:07 +0200 Subject: [PATCH] fix the filtering for qe-verify --- bugz.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bugz.py b/bugz.py index c208c60..0b6f96c 100644 --- a/bugz.py +++ b/bugz.py @@ -120,11 +120,12 @@ def bugzilla_qe_verify(self): # iterate over them if entry[2]: for sub_entry in entry[2]: - row = {"bug_id": bug_id, "description": description, - **sub_entry, "severity": severity, - "priority": priority, - "bug_status": status, "resolution": resolution} - rows.append(row) + if sub_entry['name'] == 'qe-verify' and sub_entry['status'] == '+': # noqa + row = {"bug_id": bug_id, "description": description, + **sub_entry, "severity": severity, + "priority": priority, + "bug_status": status, "resolution": resolution} + rows.append(row) else: # If no sub-entry, just add the bug_id description row = {"bug_id": bug_id, "description": description,