Skip to content

Commit

Permalink
Refactor data handling logic in ls function
Browse files Browse the repository at this point in the history
- Refactored ls function to handle 'load' data specifically.
  • Loading branch information
jakubjezek001 committed Jul 18, 2024
1 parent 7c896a4 commit 64071b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/ayon_resolve/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ def ls():
data = json.loads(data)

# treat data as container
# There might be cases where clip's metadata are having additional
# because it needs to store 'load' and 'publish' data. In that case
# we need to get only 'load' data
if data.get("load"):
data = data["load"]

Expand Down

0 comments on commit 64071b6

Please sign in to comment.