Skip to content

Commit

Permalink
🚨 Makes ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MuelNova committed Jul 18, 2024
1 parent a906c72 commit 1de90f0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arknights_mower/utils/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,6 @@ def send_message_old(
if not token:
logger.error("PushPlus的token未配置")
return


# img 嵌入 html
# if attach_image is not None:
Expand All @@ -940,7 +939,7 @@ def send_message_old(
# img_base64 = base64.b64encode(attachment)
# img_url = f"data:image/jpeg;base64,{img_base64.decode('utf-8')}"
# img_tag = f'<img src="{img_url}" />'

# # 查找 </body> 标签的位置
# body_close_tag = '</body>'
# insert_position = body.find(body_close_tag)
Expand All @@ -949,15 +948,13 @@ def send_message_old(
# if insert_position != -1:
# body = body[:insert_position] + img_tag + body[insert_position:]


url = r"http://www.pushplus.plus/send"
data = {
"token": token,
"title": "Mower通知",
"content": body,
"template": "markdown",
}


try:
response = requests.post(url, json=data)
Expand Down

0 comments on commit 1de90f0

Please sign in to comment.