mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
filter published workfiles by extension
This commit is contained in:
parent
e53962dd6e
commit
d97829a180
1 changed files with 3 additions and 0 deletions
|
|
@ -520,6 +520,9 @@ class IWorkfileHost:
|
||||||
# Workfile entity is not in the filesystem
|
# Workfile entity is not in the filesystem
|
||||||
# but it is in the database
|
# but it is in the database
|
||||||
rootless_path = workfile_entity["path"]
|
rootless_path = workfile_entity["path"]
|
||||||
|
ext = os.path.splitext(rootless_path)[1].lower()
|
||||||
|
if ext not in extensions:
|
||||||
|
continue
|
||||||
filepath = anatomy.fill_root(rootless_path)
|
filepath = anatomy.fill_root(rootless_path)
|
||||||
items.append(WorkfileInfo.new(
|
items.append(WorkfileInfo.new(
|
||||||
filepath,
|
filepath,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue