Show news about RER A from monday to thursday

This commit is contained in:
nemunaire 2023-05-10 11:05:17 +02:00
parent 960c1592cd
commit e3d2611589

View File

@ -107,8 +107,8 @@ def main(only_on_coming_evt=False, ignore_module=[], force_coming_event=True, ex
# RATP weather
major_lines = ["M7", "M14", "RB", "TT3A"]
weekday = datetime.now().weekday()
if weekday == 0 or weekday == 1 or weekday == 3:
major_lines.append("M1")
if weekday == 0 or weekday == 1 or weekday == 2 or weekday == 3:
major_lines.append("RA")
elif weekday == 4:
major_lines.append("M6")
from modules.ratp import RATPWeatherModule