Merge pull request #194 from phpgao/master

add option priority for gotify
This commit is contained in:
Womsxd 2022-08-20 13:18:21 +08:00 committed by GitHub
commit 43b6e0aa76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -39,3 +39,4 @@ token=ssXXX
[gotify]
api_url=http://xxx.xxx.cn
token=AMxxxx
priority=7

View File

@ -155,7 +155,8 @@ def gotify(status, push_message):
headers={"Content-Type": "application/json; charset=utf-8"},
json={
"title": title(status),
"message": push_message
"message": push_message,
"priority": cfg.getint("gotify", "priority")
}
).json()
log.info(f"推送结果:{rep.get('errmsg')}")