Изменил столбец в позиционировании людей.
Теперь отображается время связи.
This commit is contained in:
parent
b01230ab06
commit
53a1ee954f
@ -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)
|
||||
|
||||
@ -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']))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user