From 8b0a8631defd5d2aac971dda0932bb161a1e6dc0 Mon Sep 17 00:00:00 2001 From: Sabron Date: Tue, 12 Nov 2024 10:19:20 +0700 Subject: [PATCH] update : 12.11.2024 10:19:20,36 --- apps/schedulers/tasks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/schedulers/tasks.py b/apps/schedulers/tasks.py index f074412..0c5e517 100644 --- a/apps/schedulers/tasks.py +++ b/apps/schedulers/tasks.py @@ -472,11 +472,11 @@ def load_sotekom(): cursor_device_type = cursor.fetchall() for device_type in cursor_device_type: element.model_type = device_type[1] - SQL_QUERY = r'SELECT * FROM vvw_INFO_MODEL WHERE id = ' + "'" + str(data[1]) + "'" - cursor = mssql.executeSQL(conn,SQL_QUERY) - cursor_device_model = cursor.fetchall() - for device_model in cursor_device_model: - logging.message(f'model = {str(device_model)}') + #SQL_QUERY = r'SELECT * FROM vvw_INFO_MODEL WHERE id = ' + "'" + str(data[1]) + "'" + #cursor = mssql.executeSQL(conn,SQL_QUERY) + #cursor_device_model = cursor.fetchall() + #for device_model in cursor_device_model: + # logging.message(f'model = {str(device_model)}') #element.model_type = device_type[1] # element.time = row[0]+ timedelta(hours=7) # element.lat = 0 if row[2] is None else row[2]