scout/server/blueprints/phenotypes/views.py
def hpo_terms():
    """Render search box and view for HPO phenotype terms"""
    if request.method == 'GET':
        data = controllers.hpo_terms(store= store, limit=100)
        return data
    else: # POST. user is searching for a specific term or phenotype
        search_term = request.form.get('hpo_term')
        limit = request.form.get('limit')
        data = controllers.hpo_terms(store= store,  query = search_term, limit=limit)
        return dict(data, query=search_term, limit=limit)
def hpo_terms():
    """Render search box and view for HPO phenotype terms"""
    if request.method == 'GET':
        data = controllers.hpo_terms(store= store, limit=100)
        return data
    else: # POST. user is searching for a specific term or phenotype
        search_term = request.form.get('hpo_term')
        limit = request.form.get('limit')
        data = controllers.hpo_terms(store= store,  query = search_term, limit=limit)
        return dict(data, query=search_term, limit=limit)
Render search box and view for HPO phenotype terms