Fix bus stop parsing.
This commit is contained in:
parent
24f4c49429
commit
363967b739
1 changed files with 2 additions and 2 deletions
|
|
@ -418,8 +418,8 @@ class Trip:
|
||||||
|
|
||||||
if item["type"] == "bus":
|
if item["type"] == "bus":
|
||||||
# Include bus journeys in trip elements
|
# Include bus journeys in trip elements
|
||||||
from_country = agenda.get_country(item["from_stop"]["country"])
|
from_country = agenda.get_country(item["from_station"]["country"])
|
||||||
to_country = agenda.get_country(item["to_stop"]["country"])
|
to_country = agenda.get_country(item["to_station"]["country"])
|
||||||
name = f"{item['from']} → {item['to']}"
|
name = f"{item['from']} → {item['to']}"
|
||||||
elements.append(
|
elements.append(
|
||||||
TripElement(
|
TripElement(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue