diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-12-01 13:16:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 13:16:14 +0200 |
commit | f4d07dddba55a73df6b015b363d2ea7c96716ae5 (patch) | |
tree | cfc48d9fb6659b2b141eb572f240ee80185cdfd9 | |
parent | dfe2152b162634c338aa05ae427d6024994ee7b8 (diff) | |
download | redis-py-f4d07dddba55a73df6b015b363d2ea7c96716ae5.tar.gz |
Wrong number of arguments for `geosearch` command (#2464)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Fixes https://github.com/redis/redis-py/issues/2462
-rw-r--r-- | redis/commands/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py index 3be2823..1625e10 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -5581,7 +5581,7 @@ class GeoCommands(CommandsProtocol): "GEOSEARCH member and longitude or latitude" " cant be set together" ) pieces.extend([b"FROMMEMBER", kwargs["member"]]) - if kwargs["longitude"] and kwargs["latitude"]: + if kwargs["longitude"] is not None and kwargs["latitude"] is not None: pieces.extend([b"FROMLONLAT", kwargs["longitude"], kwargs["latitude"]]) # BYRADIUS or BYBOX |