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)