Изменил столбец в позиционировании людей.

Теперь отображается время связи.
This commit is contained in:
zakhy 2025-04-01 10:24:35 +07:00
parent b01230ab06
commit 53a1ee954f
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
<thead>
<tr role="row">
<th>Сотрудники <span id="workersCount">( 0 )</span></th>
<th></th>
<th>Время координат</th>
</tr>
</thead>
<tbody id="workersTableBody">
@ -65,7 +65,7 @@
tdWorkerID.innerHTML = `<a href="workers/edit/${worker.id}/">${worker.name}</a>`
const tdWorkerCoord = document.createElement('td')
tdWorkerCoord.textContent = `${worker.lat}, ${worker.lon}`
tdWorkerCoord.textContent = `${worker.time}`
tr.appendChild(tdWorkerID)
tr.appendChild(tdWorkerCoord)

View File

@ -84,7 +84,7 @@ def update_object(request, pk=None):
"lon": worker.longitude,
"velocity": worker.velocity,
"radius": worker.radius,
"time": worker.update_time.strftime("%d.%m.%Y, %H:%M:%S"),
"time": worker.update_time.strftime("%d.%m.%Y %H:%M:%S"),
}
)
workers_mas.sort(key=lambda worker_ : get_priority(worker_['name']))