Убрал широту и долготу. Увеличил фильтр по времени

This commit is contained in:
zakhy 2025-05-14 16:09:44 +07:00
parent 5ebee78fec
commit 0cdc139a4d
2 changed files with 1 additions and 9 deletions

View File

@ -133,8 +133,6 @@
<th>Наименование</th>
<th>Государственный номер</th>
<th>Время координат</th>
<th>Широта</th>
<th>Долгота</th>
<th>Скорость</th>
</tr>
</thead>
@ -178,12 +176,6 @@
<td>
<a href="object/?id={{ catalog.id }}">{{ catalog.time }}</a>
</td>
<td>
<a href="object/?id={{ catalog.id }}">{{ catalog.lat }}</a>
</td>
<td>
<a href="object/?id={{ catalog.id }}">{{ catalog.lon }}</a>
</td>
<td>
<a href="object/?id={{ catalog.id }}">{{ catalog.speed }}</a>
</td>

View File

@ -312,7 +312,7 @@ def main_index(request):
) # широта
param = request.GET.dict()
date_start = datetime.now() - timedelta(days=1)
date_start = datetime.now() - timedelta(days=7)
my_filter = Q(block=False)
my_filter &= Q(time__gte=date_start)
clients = Equipment.objects.filter(my_filter).order_by("-time", "name").all()