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

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