pythonium
This commit is contained in:
parent
2e6daa9da3
commit
b6e9ade1b2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue