Fix a bug with the maintenance task looping too fast
This commit is contained in:
1 parent
89c5e55936
commit
8cf9b8f6f8
1 file changed
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user