correct uptime kuma msg
This commit is contained in:
parent
53b68a1930
commit
9b16f9a3fa
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ proc send_notify*(uk: UptimeKuma, state: State, runtime: int = 0, msg: string =
|
||||||
status = "up"
|
status = "up"
|
||||||
else:
|
else:
|
||||||
status = "down"
|
status = "down"
|
||||||
var message = fmt"{status}"
|
var message = $state
|
||||||
if msg != "":
|
if msg != "":
|
||||||
message &= fmt":{msg}"
|
message &= fmt":{msg}"
|
||||||
let url = fmt"{uk.base_url}?status={status}&msg={message}&ping={runtime}"
|
let url = fmt"{uk.base_url}?status={status}&msg={message}&ping={runtime}"
|
||||||
|
|
Loading…
Reference in a new issue