добавил отображение прогресса
All checks were successful
Deploy timelaps / deploy (push) Successful in 5s

This commit is contained in:
ack
2026-04-19 20:14:52 +03:00
parent c220a3efca
commit cc07dd4373
2 changed files with 18 additions and 6 deletions

View File

@@ -64,6 +64,7 @@ def job_list(request):
if camera_id:
qs = qs.filter(camera_id=camera_id)
jobs = qs.order_by('-created_at')[:200]
has_active_jobs = qs.filter(status__in=[TimelapseJob.Status.PLANNED, TimelapseJob.Status.RUNNING]).exists()
return render(
request,
'camlaps/job_list.html',
@@ -71,6 +72,7 @@ def job_list(request):
'jobs': jobs,
'queue_started': request.GET.get('started'),
'retried': request.GET.get('retried'),
'has_active_jobs': has_active_jobs,
},
)