From 728c6eac9a8dff9d073ab4ef71f3185461e6462a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=80=D0=B5=D0=B4=D1=80=D0=B0=D0=B3=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=BB=D0=B8=D1=9B?= Date: Thu, 4 Jul 2024 00:19:23 +0200 Subject: [PATCH] Update plugin/core/types.py Co-authored-by: jwortmann --- plugin/core/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/core/types.py b/plugin/core/types.py index 76a775d20..3b49d070c 100644 --- a/plugin/core/types.py +++ b/plugin/core/types.py @@ -469,8 +469,8 @@ def matches(file_operation_filter: FileOperationFilter) -> bool: return False return True - filters = [matches(file_operation_filter) for file_operation_filter in file_operation_options.get('filters')] - return any(filters) if filters else True + filters = file_operation_options.get('filters') + return any(matches(_filter) for _filter in filters) if filters else True # method -> (capability dotted path, optional registration dotted path)