Merge branch 'main' of github.com:felinae98/nonebot-bison

This commit is contained in:
felinae98
2021-12-25 23:58:22 +08:00
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class Post:
return Image.open(pic_buffer)
def _check_image_square(self, size: tuple[int, int]) -> bool:
return abs(size[0] - size[1]) / size[0] < 0.01
return abs(size[0] - size[1]) / size[0] < 0.05
async def _pic_merge(self) -> None:
if len(self.pics) < 3: