From d9689a679d9840fe1444f57793114a889f629e2f Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Wed, 6 Sep 2023 11:06:07 +0200 Subject: [PATCH] ratp: Display only one line on scheduled work --- modules/ratp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ratp.py b/modules/ratp.py index 9a3ddf6..931af15 100644 --- a/modules/ratp.py +++ b/modules/ratp.py @@ -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: