Attempt to temporarily fix #2
This commit is contained in:
@@ -2,11 +2,15 @@ from datetime import datetime
|
||||
from typing import Any, Mapping
|
||||
|
||||
from pyrmv.classes.message import Message
|
||||
from pyrmv.utility import ref_upgrade
|
||||
|
||||
|
||||
class LineArrival:
|
||||
def __init__(self, data: Mapping[str, Any], client, retrieve_stops: bool = True):
|
||||
self.journey = client.journey_detail(data["JourneyDetailRef"]["ref"])
|
||||
# Upgrade is temporarily used due to RMV API mismatch
|
||||
# self.journey = client.journey_detail(data["JourneyDetailRef"]["ref"])
|
||||
self.journey = client.journey_detail(ref_upgrade(data["JourneyDetailRef"]["ref"]))
|
||||
|
||||
self.status = data["JourneyStatus"]
|
||||
self.messages = []
|
||||
self.name = data["name"]
|
||||
@@ -40,7 +44,10 @@ class LineArrival:
|
||||
|
||||
class LineDeparture:
|
||||
def __init__(self, data: Mapping[str, Any], client, retrieve_stops: bool = True):
|
||||
self.journey = client.journey_detail(data["JourneyDetailRef"]["ref"])
|
||||
# Upgrade is temporarily used due to RMV API mismatch
|
||||
# self.journey = client.journey_detail(data["JourneyDetailRef"]["ref"])
|
||||
self.journey = client.journey_detail(ref_upgrade(data["JourneyDetailRef"]["ref"]))
|
||||
|
||||
self.status = data["JourneyStatus"]
|
||||
self.messages = []
|
||||
self.name = data["name"]
|
||||
|
Reference in New Issue
Block a user