mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Merge pull request #4000 from rooftopcellist/order_job_counts
fix analytics job counts by ordering query Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
958c192ff7
@ -177,9 +177,9 @@ def instance_info(since):
|
|||||||
def job_counts(since):
|
def job_counts(since):
|
||||||
counts = {}
|
counts = {}
|
||||||
counts['total_jobs'] = models.UnifiedJob.objects.exclude(launch_type='sync').count()
|
counts['total_jobs'] = models.UnifiedJob.objects.exclude(launch_type='sync').count()
|
||||||
counts['status'] = dict(models.UnifiedJob.objects.exclude(launch_type='sync').values_list('status').annotate(Count('status')))
|
counts['status'] = dict(models.UnifiedJob.objects.exclude(launch_type='sync').values_list('status').annotate(Count('status')).order_by())
|
||||||
counts['launch_type'] = dict(models.UnifiedJob.objects.exclude(launch_type='sync').values_list('launch_type').annotate(Count('launch_type')))
|
counts['launch_type'] = dict(models.UnifiedJob.objects.exclude(launch_type='sync').values_list(
|
||||||
|
'launch_type').annotate(Count('launch_type')).order_by())
|
||||||
return counts
|
return counts
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user