Skip to content

Commit 1291f9a

Browse files
committed
Fixed bug if user distance is 0.0
1 parent b6e0151 commit 1291f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/PyMatcha/routes/api/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def search():
7474
continue
7575

7676
distance = _get_distance(current_user.geohash, user.geohash)
77-
if distance:
77+
if distance is not None:
7878
if distance > max_distance:
7979
if max_distance != -1:
8080
continue

0 commit comments

Comments
 (0)