Fix a bug with the maintenance task looping too fast

This commit is contained in:
DevilXD committed 2022-07-23 12:32:08 +02:00
1 parent 89c5e55936
commit 8cf9b8f6f8
1 file changed
+1 -1
+1 -1
View File
@@ -473,7 +473,7 @@ class Twitch:
) )
if period > one_hour: if period > one_hour:
period = one_hour period = one_hour
times = ceil(period.total_seconds() / 30 * 60) times = ceil(period.total_seconds() / (30 * 60))
period /= times period /= times
for i in range(times): for i in range(times):
channel = self.watching_channel.get_with_default(None) channel = self.watching_channel.get_with_default(None)