summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2023-11-26 19:59:17 +0100
committerPapoteur <papoteur@mageia.org>2023-11-26 19:59:17 +0100
commit10e30c96539a3a90886ed718d7ba9511070f5236 (patch)
tree11c0293a518b6c18e5dfb3017452458a27ec51e5
parentffce8fe1ae0eab4f8bcd560ce44a1c94ac5d94fb (diff)
downloadmga-advisor-10e30c96539a3a90886ed718d7ba9511070f5236.tar
mga-advisor-10e30c96539a3a90886ed718d7ba9511070f5236.tar.gz
mga-advisor-10e30c96539a3a90886ed718d7ba9511070f5236.tar.bz2
mga-advisor-10e30c96539a3a90886ed718d7ba9511070f5236.tar.xz
mga-advisor-10e30c96539a3a90886ed718d7ba9511070f5236.zip
Export release number without quotes
-rw-r--r--mga-advisor.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/mga-advisor.py b/mga-advisor.py
index 7810287..6c2aeae 100644
--- a/mga-advisor.py
+++ b/mga-advisor.py
@@ -184,13 +184,14 @@ class Widget(QWidget):
if self.ui.list_src.count() != 0:
for n in range(0, self.ui.list_src.count()):
release, repo, name = self.ui.list_src.item(n).text().split(" ")
- if not release in srcs.keys():
- srcs[release] = {}
- srcs[release][repo] = []
+ rel = int(release)
+ if not rel in srcs.keys():
+ srcs[rel] = {}
+ srcs[rel][repo] = []
else:
if not repo in srcs[release].keys():
- srcs[release][repo] = []
- srcs[release][repo].append(self.sanitize_line(name))
+ srcs[rel][repo] = []
+ srcs[rel][repo].append(self.sanitize_line(name))
data['src'] = srcs
if len(self.ui.description_te.toPlainText()) != 0:
data['description'] = self.ui.description_te.toPlainText()