From 82a8ea43ded9f0a04dbd9a925dc2b406139dbe0b Mon Sep 17 00:00:00 2001 From: MVarshini Date: Fri, 13 Dec 2024 21:15:23 +0530 Subject: [PATCH] ISSUE-142 Quay graphs --- backend/app/api/v1/endpoints/ocp/results.py | 2 +- backend/app/api/v1/endpoints/quay/quayGraphs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/api/v1/endpoints/ocp/results.py b/backend/app/api/v1/endpoints/ocp/results.py index 09d101e..4df42c7 100644 --- a/backend/app/api/v1/endpoints/ocp/results.py +++ b/backend/app/api/v1/endpoints/ocp/results.py @@ -26,5 +26,5 @@ async def results_for_job( es = ElasticService(configpath="ocp.elasticsearch") response = await es.post(query=query) await es.close() - tasks = [item["_source"] for item in response] + tasks = [item["_source"] for item in response["data"]] return tasks diff --git a/backend/app/api/v1/endpoints/quay/quayGraphs.py b/backend/app/api/v1/endpoints/quay/quayGraphs.py index 907f307..c11f613 100644 --- a/backend/app/api/v1/endpoints/quay/quayGraphs.py +++ b/backend/app/api/v1/endpoints/quay/quayGraphs.py @@ -239,7 +239,7 @@ async def getMatchRuns(meta: dict): es = ElasticService(configpath="quay.elasticsearch") response = await es.post(query=query) await es.close() - runs = [item["_source"] for item in response] + runs = [item["_source"] for item in response["data"]] uuids = [] for run in runs: uuids.append(run["uuid"])