Merge pull request #1244 from GSA/Filter-out-empty-notifications

Filtered out empty notifications (related to recent batch table)
This commit is contained in:
Carlo Costino
2024-02-27 11:08:39 -05:00
committed by GitHub

View File

@@ -76,6 +76,7 @@ def service_dashboard(service_id):
"notifications": aggregate_notifications_by_job.get(job["id"], []), "notifications": aggregate_notifications_by_job.get(job["id"], []),
} }
for job in job_response for job in job_response
if aggregate_notifications_by_job.get(job["id"], [])
] ]
return render_template( return render_template(
"views/dashboard/dashboard.html", "views/dashboard/dashboard.html",