Skip to content

Commit

Permalink
Wrong number of arguments for geosearch command (#2464)
Browse files Browse the repository at this point in the history
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Fixes #2462
  • Loading branch information
dvora-h committed Dec 1, 2022
1 parent dfe2152 commit f4d07dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/commands/core.py
Expand Up @@ -5581,7 +5581,7 @@ def _geosearchgeneric(
"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
Expand Down

0 comments on commit f4d07dd

Please sign in to comment.