From aca27cdae213cb03f8b39cd9155d4a382fa80afe Mon Sep 17 00:00:00 2001 From: Jonas Weinz Date: Wed, 23 Jun 2021 19:25:51 +0200 Subject: [PATCH] fixing small bug --- server/crossword_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/crossword_generator.py b/server/crossword_generator.py index d5f5990..02345e5 100644 --- a/server/crossword_generator.py +++ b/server/crossword_generator.py @@ -279,7 +279,7 @@ def create_word_grid(w: int, h: int, lang_code: str = "en", target_density=0.5): for char in word: if char not in locations_cpy or len(locations_cpy[char]) == 0: # next try: - get_solution_word(min_length=min_length, max_length=max_length) + return get_solution_word(min_length=min_length, max_length=max_length) location_candidates = locations_cpy[char]