diff --git a/pyrmv/classes/Board.py b/pyrmv/classes/Board.py index 8bfda59..dbbe3b2 100644 --- a/pyrmv/classes/Board.py +++ b/pyrmv/classes/Board.py @@ -1,13 +1,12 @@ -# from pyrmv.methods.journey_detail import journey_detail - from datetime import datetime +from pyrmv.methods.journey_detail import journey_detail from pyrmv.methods.stop_by_id import stop_by_id class LineArrival(): def __init__(self, data, access_id: str): - # self.journey = journey_detail(line["JourneyDetailRef"]["ref"]) + self.journey = journey_detail(access_id, data["JourneyDetailRef"]["ref"]) self.status = data["JourneyStatus"] # self.messages = [] self.name = data["name"] @@ -30,7 +29,7 @@ class LineArrival(): class LineDeparture(): def __init__(self, data, access_id: str): - # self.journey = journey_detail(line["JourneyDetailRef"]["ref"]) + self.journey = journey_detail(access_id, data["JourneyDetailRef"]["ref"]) self.status = data["JourneyStatus"] # self.messages = [] self.name = data["name"]