From 8be48bb0625b25e3bfaa7b0058ab72edc354b1cc Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 2 Apr 2024 11:09:03 +0200 Subject: [PATCH] Fix AlertsModule when too much alerts to display --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f897f1f..b75dcbd 100644 --- a/main.py +++ b/main.py @@ -180,7 +180,7 @@ def main(only_on_coming_evt=False, ignore_module=[], force_coming_event=True, ex image.paste(WeatherTemperatureModule().draw_module(config, 480, 200), (0, 580)) if expand_alerts and more_alerts > 0: - mod, more_alerts = AlertsModule(alerts, ignore_module).draw_module(config, 480, 785 - NEXT_STOP_Y - occuped_space) + mod, more_alerts = AlertsModule(config, alerts, ignore_module).draw_module(config, 480, 785 - NEXT_STOP_Y - occuped_space) image.paste(mod, (0, NEXT_STOP_Y + occuped_space), mod)