From 04bb35159307f00efe55a3788a188c34fd6de05b Mon Sep 17 00:00:00 2001 From: Kepka Ludovic Date: Sun, 31 Aug 2025 21:10:27 +0200 Subject: [PATCH] =?UTF-8?q?continuer=20de=20scanner=20meme=20si=20la=20cha?= =?UTF-8?q?ine=20est=20d=C3=A9sactiv=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twitchbot/live_alert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitchbot/live_alert.py b/twitchbot/live_alert.py index 1e41db2..1292aa8 100644 --- a/twitchbot/live_alert.py +++ b/twitchbot/live_alert.py @@ -9,12 +9,12 @@ from webapp import webapp async def checkOnlineStreamer(twitch: Twitch) : with webapp.app_context() : - alerts : list[LiveAlert] = LiveAlert.query.filter_by(enable = True).all() + alerts : list[LiveAlert] = LiveAlert.query.all() streams = await _retreiveStreams(twitch, alerts) for alert in alerts : stream = next((s for s in streams if s.user_login == alert.login), None) if stream : - if not alert.online : + if not alert.online and alert.enable : await _notifyAlert(alert, stream) alert.online = True else :