mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-16 01:37:59 +00:00
fix a bug in RedisNum filter againt value 0 (#14587)
- **Description:** There is a bug in RedisNum filter that filter towards value 0 will be parsed as "*". This is a fix to it. - **Issue:** NA - **Dependencies:** NA - **Tag maintainer:** NA - **Twitter handle:** NA
This commit is contained in:
parent
b885880344
commit
e5bd88383f
@ -214,7 +214,7 @@ class RedisNum(RedisFilterField):
|
||||
|
||||
def __str__(self) -> str:
|
||||
"""Return the query syntax for a RedisNum filter expression."""
|
||||
if not self._value:
|
||||
if self._value is None:
|
||||
return "*"
|
||||
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user