We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40e6f93 commit 1e3fa78Copy full SHA for 1e3fa78
backend/PyMatcha/routes/api/search.py
@@ -64,7 +64,8 @@ def search():
64
if max_distance != -1:
65
continue
66
else:
67
- raise BadRequestError("user needs to sets his location first")
+ if max_distance != -1:
68
+ raise BadRequestError("user needs to sets his location first")
69
70
user_tags = [t.name for t in user.get_tags()]
71
common_tags = _get_common_tags(tags, user_tags)
0 commit comments