欸
This commit is contained in:
parent
8a9494b593
commit
6335e73a15
@ -90,6 +90,7 @@ def bmcl_dashboard(msg: IcaNewMessage, client: IcaClient) -> None:
|
|||||||
dashboard_status = wrap_request("https://bd.bangbang93.com/openbmclapi/metric/version", msg, client)
|
dashboard_status = wrap_request("https://bd.bangbang93.com/openbmclapi/metric/version", msg, client)
|
||||||
if data is None or dashboard_status is None:
|
if data is None or dashboard_status is None:
|
||||||
return
|
return
|
||||||
|
global backend_version
|
||||||
backend_version = dashboard_status["version"]
|
backend_version = dashboard_status["version"]
|
||||||
backend_commit = dashboard_status["_resolved"].split("#")[1][:7]
|
backend_commit = dashboard_status["_resolved"].split("#")[1][:7]
|
||||||
data_bytes: float = data["bytes"]
|
data_bytes: float = data["bytes"]
|
||||||
|
Loading…
Reference in New Issue
Block a user