mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix - files on representation cannot be single item list (#5545)
Further logic expects that single item files will be only 'string' not 'list' (eg. repre["files"] = "abc.exr" not repre["files"] = ["abc.exr"]. This would cause an issue in ExtractReview later.
This commit is contained in:
parent
dc684b65f3
commit
0f39ccf016
1 changed files with 4 additions and 1 deletions
|
|
@ -70,7 +70,10 @@ class ValidateExpectedFiles(pyblish.api.InstancePlugin):
|
|||
# Update the representation expected files
|
||||
self.log.info("Update range from actual job range "
|
||||
"to frame list: {}".format(frame_list))
|
||||
repre["files"] = sorted(job_expected_files)
|
||||
# single item files must be string not list
|
||||
repre["files"] = (sorted(job_expected_files)
|
||||
if len(job_expected_files) > 1 else
|
||||
list(job_expected_files)[0])
|
||||
|
||||
# Update the expected files
|
||||
expected_files = job_expected_files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue