Skip to content

Commit

Permalink
fix: set walkReluctance to values from 0-3 (since 2/3 are the sweet s…
Browse files Browse the repository at this point in the history
…pot)
  • Loading branch information
fpurcell committed Jun 23, 2023
1 parent 76c1c10 commit cec5f45
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ott/loader/otp/preflight/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,10 @@ def url_distance(self, dist=None):
dist = num_utils.to_int(dist, self.distance)
if dist:
if dist > 9000: dist = 0
elif dist > 2000: dist = 2
elif dist > 1500: dist = 5
elif dist > 1000: dist = 10
elif dist > 500: dist = 15
else: dist = 20
elif dist > 2000: dist = 1
elif dist > 1000: dist = 2
elif dist > 500: dist = 3
else: dist = 1
self.url_param('walkReluctance', dist)
else:
self.url_param('maxWalkDistance', dist, self.distance)
Expand Down

0 comments on commit cec5f45

Please sign in to comment.