mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix publish representation data
This commit is contained in:
parent
2d178ade4d
commit
5bcc8d7cb5
1 changed files with 4 additions and 0 deletions
|
|
@ -12,6 +12,10 @@ def create_representation_data(files):
|
|||
"""Create representation data needed for `instance.data['representations']"""
|
||||
first_file = files[0]
|
||||
folder, filename = os.path.split(first_file)
|
||||
|
||||
# Files should be filename only in representation
|
||||
files = [os.path.basename(filepath) for filepath in files]
|
||||
|
||||
ext = os.path.splitext(filename)[-1].strip(".")
|
||||
return {
|
||||
"name": ext,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue