This commit is contained in:
shenjack 2024-05-04 14:13:45 +08:00
parent 8a9494b593
commit 6335e73a15
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -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)
if data is None or dashboard_status is None:
return
global backend_version
backend_version = dashboard_status["version"]
backend_commit = dashboard_status["_resolved"].split("#")[1][:7]
data_bytes: float = data["bytes"]