Types Stop and StopTrip are now supported by board
This commit is contained in:
parent
eee76fdff9
commit
6d447a64c5
@ -49,6 +49,9 @@ def board_arrival(
|
|||||||
* BoardArrival: Instance of BoardArrival object.
|
* BoardArrival: Instance of BoardArrival object.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if (isinstance(direction, Stop) or isinstance(direction, StopTrip)):
|
||||||
|
direction = direction.id
|
||||||
|
|
||||||
board_raw = raw_board_arrival(
|
board_raw = raw_board_arrival(
|
||||||
accessId=access_id,
|
accessId=access_id,
|
||||||
id=id,
|
id=id,
|
||||||
|
@ -49,6 +49,9 @@ def board_departure(
|
|||||||
* BoardDeparture: Instance of BoardDeparture object.
|
* BoardDeparture: Instance of BoardDeparture object.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if (isinstance(direction, Stop) or isinstance(direction, StopTrip)):
|
||||||
|
direction = direction.id
|
||||||
|
|
||||||
board_raw = raw_board_departure(
|
board_raw = raw_board_departure(
|
||||||
accessId=access_id,
|
accessId=access_id,
|
||||||
id=id,
|
id=id,
|
||||||
|
Loading…
Reference in New Issue
Block a user