diff --git a/slpkg/views/views.py b/slpkg/views/views.py index a140a020..350c6e51 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -52,6 +52,7 @@ class ViewMessage(Configs): if self.is_binary: version: str = self.data[package][0] + # size: str = self.utils.convert_file_sizes(int(self.data[package][4])) <- It's going to replace with this size: str = self.utils.convert_file_sizes( int(''.join(re.findall(r'\d+', self.data[package][4]))) ) @@ -216,7 +217,9 @@ class ViewMessage(Configs): installed: str = self.utils.is_package_installed(pkg) if self.is_binary: + # size_comp += int(self.data[pkg][4]) <- It's going to replace with this size_comp += int(''.join(re.findall(r'\d+', self.data[pkg][4]))) + # size_uncomp += int(self.data[pkg][5]) <- It's going to replace with this size_uncomp += int(''.join(re.findall(r'\d+', self.data[pkg][5]))) if installed and option == 'remove':