добавил отображение прогресса
All checks were successful
Deploy timelaps / deploy (push) Successful in 5s
All checks were successful
Deploy timelaps / deploy (push) Successful in 5s
This commit is contained in:
@@ -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,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user