From 4d5195308f4c482ae9a21ff736db0bc89e1c173a Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 9 Sep 2024 13:52:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84equip=5Flast=5Fmlog3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/datax.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/wpm/datax.py b/apps/wpm/datax.py index 6ade85d1..aea4f723 100644 --- a/apps/wpm/datax.py +++ b/apps/wpm/datax.py @@ -72,6 +72,8 @@ class AnaViewSet(GenericViewSet): elif item['mstate'] == '故障': 故障 += 1 ret = {"保温": 保温, "冷却": 冷却, "未运行": 未运行, "故障": 故障} + ret['mstate_json'] = mstate_json + ret['now'] = now.strftime('%Y-%m-%d %H:%M:%S') ret["rows"] = equip_qs_l return Response(ret)