summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-12-24 21:52:43 +0100
committerPapoteur <papoteur@mageia.org>2023-12-24 21:52:43 +0100
commit03e264f1f4aaf59bb3a500ce16c139840580153f (patch)
tree500eece09e2f779eb1d80dcf0e739e122c9b9749
parent123c4edb4999a3c4b2db1c804d72c75e6f9af215 (diff)
downloadmga-advisor-03e264f1f4aaf59bb3a500ce16c139840580153f.tar
mga-advisor-03e264f1f4aaf59bb3a500ce16c139840580153f.tar.gz
mga-advisor-03e264f1f4aaf59bb3a500ce16c139840580153f.tar.bz2
mga-advisor-03e264f1f4aaf59bb3a500ce16c139840580153f.tar.xz
mga-advisor-03e264f1f4aaf59bb3a500ce16c139840580153f.zip
Deplace the writing of the bug reference to the first place
-rw-r--r--mga-advisor.py2
1 files changed, 1 insertions, 1 deletions
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)