Skip to content

Commit

Permalink
resources.py refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 17, 2024
1 parent caff7cd commit 0dadb80
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apio/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,13 @@ def get_packages(self) -> tuple[list, list]:
# -- Check if this package is installed
if package in self.profile.packages:

# package_name = self.get_package_release_name(package)
# -- Get the installed version
version = self.profile.packages[package]["version"]

data["version"] = self.profile.get_package_version(
package, self.get_package_release_name(package)
)
# -- Store the version
data["version"] = version

# -- Store the package
installed_packages += [data]

# -- The package is not installed
Expand Down

0 comments on commit 0dadb80

Please sign in to comment.