diff --git a/api/advent22_api/core/depends.py b/api/advent22_api/core/depends.py index 2b3ba0e..96a52ef 100644 --- a/api/advent22_api/core/depends.py +++ b/api/advent22_api/core/depends.py @@ -162,11 +162,10 @@ async def gen_day_auto_image( image = await AdventImage.from_img(img, cfg) rnd = await Random.get(day) + xy_range = range(cfg.image.border, (cfg.image.size - cfg.image.border)) # Buchstaben verstecken for letter in day_parts[day]: - xy_range = range(cfg.image.border, (cfg.image.size - cfg.image.border)) - await image.hide_text( xy=cast(_XY, tuple(rnd.choices(xy_range, k=2))), text=letter,