diff options
author | Papoteur <papoteur@mageia.org> | 2023-11-26 19:59:17 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2023-11-26 19:59:17 +0100 |
commit | 10e30c96539a3a90886ed718d7ba9511070f5236 (patch) | |
tree | 11c0293a518b6c18e5dfb3017452458a27ec51e5 | |
parent | ffce8fe1ae0eab4f8bcd560ce44a1c94ac5d94fb (diff) | |
download | mga-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.py | 11 |
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() |