fix daily stat

This commit is contained in:
Mickael 2020-03-06 20:55:29 +01:00
parent 24810ff5af
commit 808888993c

View file

@ -43,7 +43,6 @@ def main():
uniqueUserGlobal = [None] * nbElements uniqueUserGlobal = [None] * nbElements
waittest = 0
idChannel = 0 idChannel = 0
channels = getAllChannels(rocket) channels = getAllChannels(rocket)
for channel in channels: for channel in channels:
@ -97,11 +96,8 @@ def main():
messagesByChannel.append(messageByChannel) messagesByChannel.append(messageByChannel)
usersByChannel.append(userByChannel) usersByChannel.append(userByChannel)
waittest += 1 print("Wait {}/{}".format(idChannel, len(channels)))
if waittest >= 5: time.sleep(30)
waittest = 0
print("Wait {}/{}".format(idChannel, len(channels)))
time.sleep(30)
for id in range(0, nbElements): for id in range(0, nbElements):