예제 #1
0
def search_cn():
    q = request.args.get('q', default='', type=str)
    url = mapi_url('top_company_search_matches')
    if (url):
        response = requests.get(url, params={'q': q}).json()
    else:
        response = LNHPD.top_company_search_matches(q)

    return jsonify(response)
예제 #2
0
파일: main.py 프로젝트: rabib/cyclops
async def top_company_search_matches(q: str):
    return LNHPD.top_company_search_matches(q)