From ecf767d2d5b0ebe3ee84ea252b7748d00b11fec5 Mon Sep 17 00:00:00 2001 From: Sabron Date: Tue, 12 Nov 2024 10:34:58 +0700 Subject: [PATCH] update : 12.11.2024 10:34:58,70 --- apps/schedulers/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/schedulers/tasks.py b/apps/schedulers/tasks.py index fb18663..a4022c0 100644 --- a/apps/schedulers/tasks.py +++ b/apps/schedulers/tasks.py @@ -477,7 +477,7 @@ def load_sotekom(): cursor_device_model = cursor.fetchall() for device_model in cursor_device_model: element.model = device_type[1] - SQL_QUERY = r'SELECT * FROM vw_WDATA_POSITION WHERE Machine = ' + "'" + str(data[1]) + "' ORDER BY AtTime DESC LIMIT 1" + SQL_QUERY = r'SELECT * FROM vw_WDATA_POSITION WHERE Machine = ' + "'" + str(data[1]) + "' ORDER BY AtTime DESC TOP 1" cursor = mssql.executeSQL(conn,SQL_QUERY) cursor_position = cursor.fetchall() for position in cursor_position: