Commit 76e6f2d5 authored by David Mendez's avatar David Mendez
Browse files

Make pylint happy

parent c2b5bfad
"""
Services for the eubopen search
"""
import random
from app.eubopen.search.suggestions import suggestions
......@@ -11,39 +10,5 @@ def get_autocomplete_results(term):
:param term: term for which to do the autocomplete
:return: the results for the autocomplete query
"""
all_suggestions = [
{
'key': random.randint(0, 1000),
'type': 'Compound',
'title': 'MRIA9: A Chemical Probe for SIK',
'description': 'Salt-inducible kinases (SIK1-3) are members of the AMP activated protein kinase '
'(AMPK) sub-family of the calcium/calmodulin-dependent kinase (CaMK) group'
},
{
'key': random.randint(0, 1000),
'type': 'Compound',
'title': 'BI-1942: A Chemical Probe for CMA1',
'description': 'CMA1 (chymase) is a chymotrypsin-like serine protease stored in a latent '
'form in the secretory granules of mast cells '
},
{
'key': random.randint(0, 1000),
'type': 'Target',
'title': 'CHEMBL4068: Chymase',
'description': 'SINGLE PROTEIN: Homo sapiens'
},
{
'key': random.randint(0, 1000),
'type': 'Target',
'title': 'CHEMBL1293289: Bromodomain-containing protein 2',
'description': 'SINGLE PROTEIN: Homo sapiens'
}
]
indexes = list(range(0, len(all_suggestions)))
random.shuffle(indexes)
picked_indexes = indexes[:random.randint(0, len(all_suggestions))]
return suggestions.get_suggestions_for_term(term)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment