From 8cf9b8f6f806b52a7af7b6e69f0e07a75942826d Mon Sep 17 00:00:00 2001 From: DevilXD Date: Sat, 23 Jul 2022 10:43:11 +0200 Subject: [PATCH] Fix a bug with the maintenance task looping too fast --- twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index 7eed207..1cdbe22 100644 --- a/twitch.py +++ b/twitch.py @@ -473,7 +473,7 @@ class Twitch: ) if period > one_hour: period = one_hour - times = ceil(period.total_seconds() / 30 * 60) + times = ceil(period.total_seconds() / (30 * 60)) period /= times for i in range(times): channel = self.watching_channel.get_with_default(None)