mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Fix wrong check on folders
This commit is contained in:
parent
5db9efb95c
commit
16828011d2
1 changed files with 4 additions and 1 deletions
|
|
@ -28,7 +28,10 @@ class PushToProject(load.ProductLoaderPlugin):
|
|||
if not filtered_contexts:
|
||||
raise LoadError("Nothing to push for your selection")
|
||||
|
||||
folder_ids = [context["folder"]["id"] for context in filtered_contexts]
|
||||
folder_ids = set(
|
||||
context["folder"]["id"]
|
||||
for context in filtered_contexts
|
||||
)
|
||||
if len(folder_ids) > 1:
|
||||
raise LoadError("Please select products from single folder")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue