Skip to content

Commit

Permalink
commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aschleg committed Nov 10, 2019
2 parents efd2b5a + 1571260 commit 1bed4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion petpy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ def _check_parameters(animal_types=None, size=None, gender=None, age=None, coat=
sort_list=_sort)

if distance is not None:
if not 0 >= int(distance) >= 500:
if not 0 <= int(distance) <= 500:
incorrect_values['distance'] = "distance cannot be greater than 500 or less than 0."

if limit is not None:
Expand Down

0 comments on commit 1bed4ef

Please sign in to comment.