diff options
-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() |