Merge pull request #3167 from alphagov/hide-len-1-template-statistics

Don’t show template statistics on dashboard if only one template has been used
This commit is contained in:
Chris Hill-Scott
2019-11-04 14:45:33 +00:00
committed by GitHub
4 changed files with 78 additions and 48 deletions

View File

@@ -334,7 +334,6 @@ def get_dashboard_partials(service_id):
[row['count'] for row in template_statistics] or [0]
),
),
'has_template_statistics': bool(template_statistics),
'jobs': render_template(
'views/dashboard/_jobs.html',
jobs=immediate_jobs