From 91e9ac38f6cfcf14c16f7c3708f0810a9cbc8e2a Mon Sep 17 00:00:00 2001 From: zty Date: Tue, 6 Aug 2024 17:22:28 +0800 Subject: [PATCH] fix: db_insert_mplogx_batch bug --- apps/enm/tasks.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index ca8576a6..ccf4800d 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -42,8 +42,6 @@ def get_current_and_previous_time(): def db_insert_mplogx_batch(rows): for row in rows: _, tag_val, tag_code, tag_update = row - if cache.get("tag_code", None) is None: - continue insert_mplogx_item(tag_code, tag_val, make_aware(tag_update), {}) @shared_task(base=CustomTask)