This commit is contained in:
parent
024345a17d
commit
f407348d63
1 changed files with 3 additions and 8 deletions
|
@ -146,12 +146,7 @@ class BubaAnimator:
|
|||
self.log.debug("No animations, sleeping...")
|
||||
sleep(2)
|
||||
else:
|
||||
while True:
|
||||
next = random.randint(0, len(self.animations) - 1)
|
||||
if next != last:
|
||||
break
|
||||
last = next
|
||||
a = self.animations[next]
|
||||
for a in random.sample(self.animations, len(self.animations)):
|
||||
self.log.debug(f"Starting animation: {a}")
|
||||
a.run()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue