update : 12.11.2024 11:03:57,16
This commit is contained in:
parent
44b5d299ae
commit
793daa5097
@ -452,7 +452,7 @@ def load_sotekom():
|
||||
cursor = mssql.executeSQL(conn,SQL_QUERY)
|
||||
records = cursor.fetchall()
|
||||
for data in records:
|
||||
logging.message(str(data))
|
||||
#logging.message(str(data))
|
||||
element = Equipment.objects.filter(uid=data[0]).first()
|
||||
name="" if data[4] is None else data[4]
|
||||
full_name="" if data[3] is None else data[3]
|
||||
@ -481,7 +481,7 @@ def load_sotekom():
|
||||
cursor = mssql.executeSQL(conn,SQL_QUERY)
|
||||
cursor_position = cursor.fetchall()
|
||||
for position in cursor_position:
|
||||
logging.message(f' position = {cursor_position}')
|
||||
#logging.message(f' position = {cursor_position}')
|
||||
element.time=time=datetime.now() if position[2] is None else position[0][2]
|
||||
# element.time = row[0]+ timedelta(hours=7)
|
||||
element.lat = 0 if position[3] is None else position[0][3]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user