Skip to content

Commit

Permalink
Update client/ayon_resolve/plugins/load/load_editorial_package.py
Browse files Browse the repository at this point in the history
Co-authored-by: Robin De Lillo <robin@ynput.io>
  • Loading branch information
jakubjezek001 and robin-ynput authored Sep 18, 2024
1 parent e4ac6a4 commit 4a57cd4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions client/ayon_resolve/plugins/load/load_editorial_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,8 @@ def _get_container_data(
# add additional metadata from the version to imprint AYON knob
version_entity = context["version"]

# remove unnecessary keys from the data
for key in ["_item", "name"]:
if key not in data:
continue
data.pop(key)
for key in ("_item", "name"):
data.pop(key, None) # remove unnecessary key from the data if it exists

data = {
"load": data,
Expand Down

0 comments on commit 4a57cd4

Please sign in to comment.