Skip to content

Commit 752ce52

Browse files
authored
Merge pull request #425 from Seluj78/fix-search-params
Fixed search params (removed equals)
2 parents b57dbc4 + 8304b35 commit 752ce52

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

backend/PyMatcha/routes/api/search.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,22 @@ def search():
6060
)
6161

6262
if max_age != -1:
63-
if user_age >= max_age:
63+
if user_age > max_age:
6464
continue
6565
if min_age != -1:
66-
if user_age <= min_age:
66+
if user_age < min_age:
6767
continue
6868

6969
if max_score != -1:
70-
if user.heat_score >= max_score:
70+
if user.heat_score > max_score:
7171
continue
7272
if min_score != -1:
73-
if user.heat_score <= min_score:
73+
if user.heat_score < min_score:
7474
continue
7575

7676
distance = _get_distance(current_user.geohash, user.geohash)
7777
if distance:
78-
if distance >= max_distance:
78+
if distance > max_distance:
7979
if max_distance != -1:
8080
continue
8181
else:

0 commit comments

Comments
 (0)