From d57c8b0af92fd9024d7efb4d3019cda93838fc0b Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 6 May 2023 17:25:47 +0300 Subject: [PATCH] Updated for order comments --- slpkg/binaries/queries.py | 24 ++++++++++++------------ slpkg/sbos/queries.py | 18 +++++++++--------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/slpkg/binaries/queries.py b/slpkg/binaries/queries.py index 3c9bcbf9..efcb3f67 100644 --- a/slpkg/binaries/queries.py +++ b/slpkg/binaries/queries.py @@ -22,18 +22,18 @@ class BinQueries: BinariesTable.repo == self.repo).all() repos_dict: dict = { - data.name: (data.version, - data.package, - data.mirror, - data.location, - data.size_comp, - data.size_uncomp, - data.required, - data.conflicts, - data.suggests, - data.description, - data.checksum, - data.repo) + data.name: (data.version, # 0 + data.package, # 1 + data.mirror, # 2 + data.location, # 3 + data.size_comp, # 4 + data.size_uncomp, # 5 + data.required, # 6 + data.conflicts, # 7 + data.suggests, # 8 + data.description, # 9 + data.checksum, # 10 + data.repo) # 11 for data in repository_data if not self.utils.blacklist_pattern(data.name) } diff --git a/slpkg/sbos/queries.py b/slpkg/sbos/queries.py index 944f2afa..d15aaddb 100644 --- a/slpkg/sbos/queries.py +++ b/slpkg/sbos/queries.py @@ -33,15 +33,15 @@ class SBoQueries(Configs): repository_data: tuple = self.session.query(self.sbo_table).all() repos_dict: dict = { - data.name: (data.location, - data.files, - data.version, - data.download, - data.download64, - data.md5sum, - data.md5sum64, - data.requires, - data.short_description) + data.name: (data.location, # 0 + data.files, # 1 + data.version, # 2 + data.download, # 3 + data.download64, # 4 + data.md5sum, # 5 + data.md5sum64, # 6 + data.requires, # 7 + data.short_description) # 8 for data in repository_data if not self.utils.blacklist_pattern(data.name) }