fix: Remove unnecessary screenshot quality parameter
This commit is contained in:
parent
bbc23217f9
commit
f055bd7027
@ -134,7 +134,7 @@ class ImageGenerator:
|
|||||||
|
|
||||||
# 截图
|
# 截图
|
||||||
image_path = f"match_report_{match_data.get('match_id')}.png"
|
image_path = f"match_report_{match_data.get('match_id')}.png"
|
||||||
await page.screenshot(path=image_path, full_page=True, quality=100)
|
await page.screenshot(path=image_path, full_page=True)
|
||||||
await browser.close()
|
await browser.close()
|
||||||
|
|
||||||
# 上传图片
|
# 上传图片
|
||||||
@ -222,7 +222,7 @@ class ImageGenerator:
|
|||||||
|
|
||||||
# 截图
|
# 截图
|
||||||
image_path = f"recent_matches_{player_name.replace(' ', '_')}_{datetime.datetime.now().strftime('%Y%m%d%H%M%S')}.png"
|
image_path = f"recent_matches_{player_name.replace(' ', '_')}_{datetime.datetime.now().strftime('%Y%m%d%H%M%S')}.png"
|
||||||
await page.screenshot(path=image_path, full_page=True, quality=100)
|
await page.screenshot(path=image_path, full_page=True)
|
||||||
await browser.close()
|
await browser.close()
|
||||||
|
|
||||||
# 上传图片
|
# 上传图片
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user