Merge pull request #930 from alphagov/fix-display-of-jobs-on-dashboard

Fix empty jobs table showing on dashbord
This commit is contained in:
Chris Hill-Scott
2016-09-07 15:25:41 +01:00
committed by GitHub

View File

@@ -146,7 +146,7 @@ def get_dashboard_partials(service_id):
'views/dashboard/_jobs.html',
jobs=immediate_jobs
),
'has_jobs': bool(jobs),
'has_jobs': bool(immediate_jobs),
'usage': render_template(
'views/dashboard/_usage.html',
**calculate_usage(service_api_client.get_service_usage(service_id)['data'])