Update client/ayon_core/plugins/load/delete_old_versions.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Kayla Man 2024-04-09 16:54:01 +08:00 committed by GitHub
parent 2f62a3a228
commit 914367dba2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,7 +196,7 @@ class DeleteOldVersions(load.ProductLoaderPlugin):
product_entity = context["product"]
folder_entity = context["folder"]
project_name = context["project"]["name"]
anatomy = Anatomy(project_name)
anatomy = Anatomy(project_name, project_entity=context["project"])
versions = list(ayon_api.get_versions(
project_name, product_ids=[product_entity["id"]]