added PR requested changes

This commit is contained in:
Beverly Nguyen
2024-02-15 10:40:15 -08:00
parent 49c5f57d81
commit d7606b2986

View File

@@ -54,7 +54,7 @@ def service_dashboard(service_id):
aggregate_notifications_by_job = defaultdict(list)
for notification in notifications_response:
job_id = notification.get("job", {}).get("id")
job_id = notification.get("job", {}).get("id", None)
if job_id:
aggregate_notifications_by_job[job_id].append(notification)