ratp: Display only one line on scheduled work

This commit is contained in:
nemunaire 2023-09-06 11:06:07 +02:00
parent 3cd297c639
commit d9689a679d
1 changed files with 3 additions and 0 deletions

View File

@ -291,6 +291,9 @@ class RATPWeatherModule:
if ap["begin"] < yesterday:
oneline = True
if "cause" in disruption and disruption["cause"] == "travaux" and ap["begin"] > now:
oneline = True
if len(application_periods) == 0:
continue
elif len(application_periods) == 1: