From 0dd62244abe306302b4eea111557db40b5856b0f Mon Sep 17 00:00:00 2001 From: zty Date: Wed, 5 Mar 2025 18:36:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E9=87=87=E9=9B=86?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=E6=8D=A2=E6=88=90=20data?= =?UTF-8?q?=5Ftime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/enm/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/enm/tasks.py b/apps/enm/tasks.py index 711f6d4a..81de97a3 100644 --- a/apps/enm/tasks.py +++ b/apps/enm/tasks.py @@ -60,7 +60,7 @@ def db_insert_mplogx(limit:bool=True): if limit and count > 400: raise Exception("db inset count > 400") cursor.execute( - "select id, val, tag_code, update_time from tag_value where id > %s order by id, update_time", (last_tag_id, )) + "select id, val, tag_code, data_time from tag_value where id > %s order by id, data_time", (last_tag_id, )) rows = cursor.fetchall() # 获取数据后保存至本地 if rows: last_tag_id = rows[-1][0]