diff options
-rw-r--r-- | mga-advisor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mga-advisor.py b/mga-advisor.py index 0c3d07f..4bf4d26 100644 --- a/mga-advisor.py +++ b/mga-advisor.py @@ -25,7 +25,7 @@ from PySide6.QtWidgets import ( from PySide6.QtGui import QCursor from PySide6.QtCore import QFile, QDate, QDir, Qt, QTimer, QSettings from PySide6.QtUiTools import QUiLoader -BASE_URL = "https://bugs.mageia.org/rest/bug/" +BASE_URL = "https://bugs.mageia.org" class folded_str(str): pass @@ -106,7 +106,7 @@ class Widget(QWidget): self.clean() self.ui.status.setText("Loading...") self.ui.status.repaint() - url = os.path.join(BASE_URL, self.ui.bug_le.text()) + "?include_fields=cf_rpmpkg,cf_cve,url,component" + url = os.path.join(BASE_URL, "rest/bug", self.ui.bug_le.text()) + "?include_fields=cf_rpmpkg,cf_cve,url,component" headers = {'Accept': 'application/json'} r = requests.get(url, headers=headers) if r.status_code == 200 and r.json()["faults"] == []: @@ -136,7 +136,7 @@ class Widget(QWidget): cve = cve.strip() if cve != "": self.ui.list_cve.addItem(cve) - self.ui.list_ref.addItem(os.path.join(BASE_URL, self.ui.bug_le.text()) ) + self.ui.list_ref.addItem(os.path.join(BASE_URL, f"show_bug.cgi?id={self.ui.bug_le.text()}") ) for url in re.split(';|,| ', r.json()['bugs'][0]['url']): url = url.strip() if url != "": |