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"])