ical: Fix search of depart train station
This commit is contained in:
parent
9004a83dda
commit
ae83da28ed
@ -70,8 +70,8 @@ class IcalModule:
|
||||
evt["alert"] = train_situations[0]["libelleSituation"]
|
||||
|
||||
if new_start > datetime.now(tz=pytz.timezone('Europe/Paris')):
|
||||
if "evenement" in train_start_station["arrivee"]:
|
||||
evt["alert"] = train_start_station["arrivee"]["evenement"]["texte"]
|
||||
if "evenement" in train_start_station["depart"]:
|
||||
evt["alert"] = train_start_station["depart"]["evenement"]["texte"]
|
||||
if "voie" in train_start_station and "numero" in train_start_station["voie"]:
|
||||
evt["info"] = "Départ voie " + train_start_station["voie"]["numero"]
|
||||
if place is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user