Skip to content

Commit

Permalink
Update dispatcher python
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex020796 committed Dec 11, 2024
1 parent ff87400 commit 2979d44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ridepy/util/dispatchers/ridepooling.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,9 @@ def MinimalPassengerTravelTimeDispatcher(
stop_before_dropoff,
stop_after_dropoff,
) in enumerate(pairwise(stoplist[best_pickup_idx:])):
if counter_drop_off == 0:
if counter_drop_off == best_pickup_idx:
continue
if counter_drop_off < best_pickup_idx:
continue
list_result_in_between_testDropOff = is_between(
space,
Expand Down

0 comments on commit 2979d44

Please sign in to comment.