From c0523f86cb671aa678f72d75fed325c9846f1643 Mon Sep 17 00:00:00 2001 From: Francesco Luzzana Date: Wed, 6 Apr 2022 19:10:24 +0200 Subject: [PATCH] pattern length and leftovers --- screenless/bureau/soup/soup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/soup/soup.py b/screenless/bureau/soup/soup.py index c3c252a..9108908 100644 --- a/screenless/bureau/soup/soup.py +++ b/screenless/bureau/soup/soup.py @@ -120,7 +120,7 @@ class Soup(Bureau): length = len(list_a) + len(list_b) repeated_pattern = (self.pattern * (length // len(self.pattern)) - ) + (length % len(self.pattern)) + ) + self.pattern[:(length % len(self.pattern))] for choice in repeated_pattern: if choice == 'A':