We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b57dbc4 + 8304b35 commit 752ce52Copy full SHA for 752ce52
backend/PyMatcha/routes/api/search.py
@@ -60,22 +60,22 @@ def search():
60
)
61
62
if max_age != -1:
63
- if user_age >= max_age:
+ if user_age > max_age:
64
continue
65
if min_age != -1:
66
- if user_age <= min_age:
+ if user_age < min_age:
67
68
69
if max_score != -1:
70
- if user.heat_score >= max_score:
+ if user.heat_score > max_score:
71
72
if min_score != -1:
73
- if user.heat_score <= min_score:
+ if user.heat_score < min_score:
74
75
76
distance = _get_distance(current_user.geohash, user.geohash)
77
if distance:
78
- if distance >= max_distance:
+ if distance > max_distance:
79
if max_distance != -1:
80
81
else:
0 commit comments