From 3801c3ec9d4f363b6ac5d66a320cb43d790dd6ab Mon Sep 17 00:00:00 2001 From: Rob Court Date: Mon, 12 Aug 2024 00:16:34 +0100 Subject: [PATCH] schema fix --- src/vfb_connect/neo/query_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vfb_connect/neo/query_wrapper.py b/src/vfb_connect/neo/query_wrapper.py index d270c8ab..6c25f080 100644 --- a/src/vfb_connect/neo/query_wrapper.py +++ b/src/vfb_connect/neo/query_wrapper.py @@ -404,7 +404,7 @@ def get_terms_by_xref(self, acc, db='', id_type=''): vfb_ids = self.xref_2_vfb_id(acc, db=db, id_type=id_type) # Extract the list of IDs from the response - ids_to_query = [item['id'] for sublist in vfb_ids for item in sublist] + ids_to_query = [item.get('id') for item in vfb_ids] # Retrieve term information for all IDs return self.get_TermInfo(ids_to_query)