update : 13.11.2024 10:58:18,87

This commit is contained in:
Sabron 2024-11-13 10:58:18 +07:00
parent 2da6366696
commit ded89f31b4
4 changed files with 2 additions and 6 deletions

View File

@ -223,7 +223,6 @@ def map_index(request):
catalog_list = []
if json_data['result'] == 'OK':
for data in json_data['objects']:
# print(data)
objects = dict()
objects.update(id=data['id'])
objects.update(name=data['name'])

View File

@ -58,7 +58,6 @@ def rtls_save(request):
def oset_save(request):
try:
post_param=request.POST.dict()
print(post_param)
for param in post_param:
if param == 'csrfmiddlewaretoken':
continue

View File

@ -452,7 +452,7 @@ def load_sotekom():
cursor = mssql.executeSQL(conn,SQL_QUERY)
records = cursor.fetchall()
for data in records:
if data[0] == 315:
if data[0] == 89:
logging.message(f'data = {data}')
element = Equipment.objects.filter(uid=data[0]).first()
@ -483,7 +483,7 @@ def load_sotekom():
cursor = mssql.executeSQL(conn,SQL_QUERY)
cursor_position = cursor.fetchall()
for position in cursor_position:
if position[1] == 315:
if position[1] == 89:
logging.message(f' === position = {position}')
element.time=time=datetime.now() if position[2] is None else position[2]
# element.time = row[0]+ timedelta(hours=7)
@ -527,7 +527,6 @@ def load_sotekom():
def load_navigation(): #
try:
gtosystem = settingsmodule.get_settings('gtosystem','noSystem')
print(gtosystem)
if gtosystem == 'ask':
load_asc()
elif gtosystem == 'edds':

View File

@ -197,7 +197,6 @@ def map_index(request):
catalog_list=[]
if json_data['result']=='OK':
for data in json_data['objects']:
#print(data)
objects=dict()
objects.update(id=data['id'])
objects.update(name=data['name'])