From 10e30c96539a3a90886ed718d7ba9511070f5236 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 26 Nov 2023 19:59:17 +0100 Subject: Export release number without quotes --- mga-advisor.py | 11 ++++++----- 1 file 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() -- cgit v1.2.1