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
pull/13850/head
dandanwei 10 months ago committed by GitHub
parent b885880344
commit e5bd88383f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save