update : 12.11.2024 10:25:33,54

This commit is contained in:
Sabron 2024-11-12 10:25:33 +07:00
parent 19343ad137
commit 90c4162c0f

View File

@ -471,13 +471,12 @@ def load_sotekom():
cursor = mssql.executeSQL(conn,SQL_QUERY)
cursor_device_type = cursor.fetchall()
for device_type in cursor_device_type:
element.model = device_type[1]
element.model_type = device_type[1]
SQL_QUERY = r'SELECT * FROM vw_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.model = device_type[1]
# element.time = row[0]+ timedelta(hours=7)
# element.lat = 0 if row[2] is None else row[2]
# element.lon = 0 if row[3] is None else row[3]