Fix weekday
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2024-07-27 10:19:50 +02:00
parent 77ef2f46c9
commit bbda54a31e

View File

@ -109,7 +109,7 @@ 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 == 1 or weekday == 3 or weekday == 5:
if weekday == 0 or weekday == 2 or weekday == 4:
major_lines.append("M6")
from modules.ratp import RATPWeatherModule
shape.append(WidgetPlacement(RATPWeatherModule, size=(int(480/1.6), 94), position=(480-int(480/1.6), 155)))