Skip to content

Commit

Permalink
metrics.bundles Adapt get_installed_addons to the new RezRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
Minkiu committed Jan 16, 2024
1 parent 5fe4423 commit 3ca86d2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ayon_server/metrics/bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,10 @@ async def get_installed_addons(saturated: bool) -> list[tuple[str, str]]:
"""

rezrepo = RezRepo.get_instance()
return rezrepo.packages
installed_packages = []
for package, package_dict in rezrepo.packages.items():
for version in package_dict.get("versions"):
[[version_number, rez_package]] = version.items()
installed_packages.append((str(package), str(version_number)))

return installed_packages

0 comments on commit 3ca86d2

Please sign in to comment.