File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
uncoder-core/app/translator/platforms/sigma Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ def __init__(
1919 def is_suitable (
2020 self , service : Optional [list [str ]], product : Optional [list [str ]], category : Optional [list [str ]]
2121 ) -> bool :
22- product_match = set (product or []).issubset (self .products ) if product else False
23- category_match = set (category or []).issubset (self .categories ) if category else False
24- service_match = set (service or []).issubset (self .services ) if service else False
22+ product_match = set (product_ . lower () for product_ in product or []).issubset (self .products ) if product else False
23+ category_match = set (category_ . lower () for category_ in category or []).issubset (self .categories ) if category else False
24+ service_match = set (service_ . lower () for service_ in service or [] or []).issubset (self .services ) if service else False
2525 if not product and not service :
2626 return category_match
2727 return product_match and service_match or product_match and category_match
You can’t perform that action at this time.
0 commit comments