mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
OP-4394 - fix - lowercase extension everywhere
Without it it would be stored in DB uppercased and final name would also be uppercased.
This commit is contained in:
parent
93b9dd7224
commit
f18efd29b2
1 changed files with 2 additions and 0 deletions
|
|
@ -181,6 +181,7 @@ class CollectPublishedFiles(pyblish.api.ContextPlugin):
|
|||
|
||||
def _get_single_repre(self, task_dir, files, tags):
|
||||
_, ext = os.path.splitext(files[0])
|
||||
ext = ext.lower()
|
||||
repre_data = {
|
||||
"name": ext[1:],
|
||||
"ext": ext[1:],
|
||||
|
|
@ -200,6 +201,7 @@ class CollectPublishedFiles(pyblish.api.ContextPlugin):
|
|||
frame_start = list(collections[0].indexes)[0]
|
||||
frame_end = list(collections[0].indexes)[-1]
|
||||
ext = collections[0].tail
|
||||
ext = ext.lower()
|
||||
repre_data = {
|
||||
"frameStart": frame_start,
|
||||
"frameEnd": frame_end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue