ratp: Display only one line on scheduled work
This commit is contained in:
parent
3cd297c639
commit
d9689a679d
@ -291,6 +291,9 @@ class RATPWeatherModule:
|
|||||||
if ap["begin"] < yesterday:
|
if ap["begin"] < yesterday:
|
||||||
oneline = True
|
oneline = True
|
||||||
|
|
||||||
|
if "cause" in disruption and disruption["cause"] == "travaux" and ap["begin"] > now:
|
||||||
|
oneline = True
|
||||||
|
|
||||||
if len(application_periods) == 0:
|
if len(application_periods) == 0:
|
||||||
continue
|
continue
|
||||||
elif len(application_periods) == 1:
|
elif len(application_periods) == 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user