From b6e9ade1b2bbed2bc5d3be49a24104f27309320e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 10 Oct 2022 02:15:47 +0000 Subject: [PATCH] pythonium --- api/advent22_api/routers/days.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/advent22_api/routers/days.py b/api/advent22_api/routers/days.py index 51d1e2c..59fb293 100644 --- a/api/advent22_api/routers/days.py +++ b/api/advent22_api/routers/days.py @@ -97,7 +97,7 @@ async def get_picture_for_day( fill=txt_color, ) - if not (bbox := txt_layer.getbbox()) is None: + if (bbox := txt_layer.getbbox()) is not None: mean = np.mean(img.crop(bbox).getdata(), axis=0) txt_color = tuple(int(val) for val in mean)