mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Use more specific api call
This commit is contained in:
parent
7f83a62192
commit
a71ea3a3e3
1 changed files with 1 additions and 4 deletions
|
|
@ -293,14 +293,11 @@ class InventoryModel(TreeModel):
|
|||
|
||||
# Query the highest available version so the model can know
|
||||
# whether current version is currently up-to-date.
|
||||
highest_versions = ayon_api.get_versions(
|
||||
highest_versions = ayon_api.get_last_versions(
|
||||
project_name,
|
||||
product_ids={
|
||||
group["version"]["productId"] for group in grouped.values()
|
||||
},
|
||||
latest=True,
|
||||
standard=True,
|
||||
hero=False,
|
||||
fields=["productId", "version"]
|
||||
)
|
||||
highest_version_by_product_id = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue