Merge pull request #2483 from pypeclub/bugfix/OP-2285_custom_work_file_builder_fix

General: Custom template paths filter fix
This commit is contained in:
Jakub Trllo 2022-01-04 20:18:12 +01:00 committed by GitHub
commit 81eef3533e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1560,7 +1560,7 @@ def get_custom_workfile_template_by_context(
# get path from matching profile
matching_item = filter_profiles(
template_profiles,
{"task_type": current_task_type}
{"task_types": current_task_type}
)
# when path is available try to format it in case
# there are some anatomy template strings