Merge branch 'master' of https://git.profitroll.eu/profitroll/PythonRMV
This commit is contained in:
@@ -21,7 +21,7 @@ trip = client.trip_find(origin_id=origin.id, dest_id=destination.id)
|
||||
"""
|
||||
|
||||
__name__ = "pyrmv"
|
||||
__version__ = "0.3.2"
|
||||
__version__ = "0.3.3"
|
||||
__license__ = "MIT License"
|
||||
__author__ = "Profitroll"
|
||||
|
||||
|
@@ -63,6 +63,8 @@ class BoardArrival(list):
|
||||
|
||||
def __init__(self, data: dict, client, retrieve_stops: bool = True):
|
||||
super().__init__([])
|
||||
if "Arrival" not in data:
|
||||
return
|
||||
for line in data["Arrival"]:
|
||||
self.append(LineArrival(line, client, retrieve_stops=retrieve_stops))
|
||||
|
||||
@@ -76,6 +78,8 @@ class BoardDeparture(list):
|
||||
|
||||
def __init__(self, data: dict, client, retrieve_stops: bool = True):
|
||||
super().__init__([])
|
||||
if "Departure" not in data:
|
||||
return
|
||||
for line in data["Departure"]:
|
||||
self.append(LineDeparture(line, client, retrieve_stops=retrieve_stops))
|
||||
|
||||
|
Reference in New Issue
Block a user