summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2024-02-08 21:57:33 +0100
committerPapoteur <papoteur@mageia.org>2024-02-08 21:57:33 +0100
commit86f71da21c6ad7e67b4d18d0d2349a3f33dff6d8 (patch)
tree4f114df23cbe0ff25f12ddb27fcc9bc35f012336
parent83fbcb5d9f36f5f203d49329ba46892e151daec4 (diff)
downloadmga-advisor-86f71da21c6ad7e67b4d18d0d2349a3f33dff6d8.tar
mga-advisor-86f71da21c6ad7e67b4d18d0d2349a3f33dff6d8.tar.gz
mga-advisor-86f71da21c6ad7e67b4d18d0d2349a3f33dff6d8.tar.bz2
mga-advisor-86f71da21c6ad7e67b4d18d0d2349a3f33dff6d8.tar.xz
mga-advisor-86f71da21c6ad7e67b4d18d0d2349a3f33dff6d8.zip
Restore link for bug
-rw-r--r--mga-advisor.py6
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 != "":