From 03e264f1f4aaf59bb3a500ce16c139840580153f Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 24 Dec 2023 21:52:43 +0100 Subject: Deplace the writing of the bug reference to the first place --- mga-advisor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mga-advisor.py b/mga-advisor.py index f8091c3..8d44ad0 100644 --- a/mga-advisor.py +++ b/mga-advisor.py @@ -136,11 +136,11 @@ class Widget(QWidget): cve = cve.strip() if cve != "": self.ui.list_cve.addItem(cve) + self.ui.list_ref.addItem(f"https://bugs.mageia.org/show_bug.cgi?id={self.ui.bug_le.text()}") for url in re.split(';|,| ', r.json()['bugs'][0]['url']): url = url.strip() if url != "": self.ui.list_ref.addItem(url) - self.ui.list_ref.addItem(f"https://bugs.mageia.org/show_bug.cgi?id={self.ui.bug_le.text()}") if "component" in r.json()['bugs'][0].keys(): if r.json()['bugs'][0]["component"] == "Security": self.ui.security_rb.setChecked(True) -- cgit v1.2.1