From 45fda773abd5689adcfa6403e039c5c1145059c0 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 22 Apr 2024 15:23:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mqtt=E6=8F=92=E5=85=A5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=E9=9C=80=E6=A0=A1=E9=AA=8Cenabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/enm/services.py b/apps/enm/services.py index 0a3d9a39..abb15ffe 100644 --- a/apps/enm/services.py +++ b/apps/enm/services.py @@ -276,7 +276,7 @@ def insert_mplogx_from_king_mqtt_chunk(objs: list, otime_obj: datetime, is_offse code = f"K_{n}" cache_key = Mpoint.cache_key(code) mpoint_data = get_mpoint_cache(code) - if mpoint_data is None: + if mpoint_data is None or not mpoint_data['enabled']: continue val_type = mpoint_data["val_type"] # if is_offset: