filter published workfiles by extension

This commit is contained in:
Jakub Trllo 2025-06-06 10:07:18 +02:00
parent e53962dd6e
commit d97829a180

View file

@ -520,6 +520,9 @@ class IWorkfileHost:
# Workfile entity is not in the filesystem
# but it is in the database
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)
items.append(WorkfileInfo.new(
filepath,