Skip to content

Commit 3482c04

Browse files
author
Zhouyang Lian
committed
meta_combo uniprot_id is array
1 parent 43285cf commit 3482c04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

datanator_rest_api/routes/proteins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class meta_combo:
6363

6464
def get(uniprot_id=None, ncbi_taxon_id=None, species_name=None, name=None):
6565
if uniprot_id is not None: # uniprot_id
66-
return p_manager.get_ortho_by_id(uniprot_id)
66+
return p_manager_new.get_ortho_by_id(uniprot_id[0])
6767
elif name is not None and ncbi_taxon_id is not None and species_name is None: # name + taxon_id
6868
return p_manager.get_meta_by_name_taxon(name, ncbi_taxon_id)
6969
elif name is not None and species_name is not None: # name + species_name

0 commit comments

Comments
 (0)