Skip to content

Commit eeadf30

Browse files
committed
patching #134 (comment)
1 parent 674b4a2 commit eeadf30

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

datanator_rest_api/routes/metabolites.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ class meta:
147147

148148
def get(inchikey, projection="{'_id': 0, 'kegg_meta.gene_ortholog': 0}"):
149149
projection = eval(projection)
150-
doc = mm_manager._collection.find_one({'InChI_Key': inchikey}, projection=projection,
151-
collation=mm_manager.collation)
150+
doc = mm_manager.db_obj['metabolite_concentrations'].find_one({'InChI_Key': inchikey}, projection=projection)
152151
if doc:
153152
return doc
154153
else:

0 commit comments

Comments
 (0)