We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8f1afe commit 5e5e117Copy full SHA for 5e5e117
aredis_om/model/model.py
@@ -563,7 +563,10 @@ def resolve_value(
563
separator_char,
564
)
565
return ""
566
- if separator_char in value:
+ if isinstance(value, int):
567
+ # This if will hit only if the field is prinary key of type int
568
+ result = f"@{field_name}:[{value} {value}]"
569
+ elif separator_char in value:
570
# The value contains the TAG field separator. We can work
571
# around this by breaking apart the values and unioning them
572
# with multiple field:{} queries.
0 commit comments