From 3f738f453be71530d898c9c29423b52bd7adb479 Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 6 Oct 2022 13:04:00 +0200 Subject: [PATCH] Integrated journey_detail --- pyrmv/classes/Board.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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"]