Skip to content

Commit e251924

Browse files
authored
Merge pull request #147 from UncoderIO/gis-fix-int-in-contains-all
Fix issue with int in the contains all modifier
2 parents 04835ba + fe6404e commit e251924

File tree

1 file changed

+1
-1
lines changed
  • uncoder-core/app/translator/platforms/sigma/models

1 file changed

+1
-1
lines changed

uncoder-core/app/translator/platforms/sigma/models/modifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def map_modifier(self, modifier: str) -> Identifier:
2626
return Identifier(token_type=self.modifier_map.get(modifier, modifier))
2727

2828
def modifier_all(self, field_name: str, modifier: str, values: Union[str, list[str]]) -> Union[tuple, list]:
29-
if (isinstance(values, list) and len(values) == 1) or isinstance(values, str):
29+
if (isinstance(values, list) and len(values) == 1) or isinstance(values, (str, int)):
3030
operator = self.map_modifier(modifier=modifier)
3131
values = self.convert_values_to_str_values(values, modifier)
3232
return (FieldValue(source_name=field_name, operator=operator, value=values),)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy