コード例 #1
0
ファイル: expose.py プロジェクト: neiodavince/mayb
def get_candidates(offset=0, num=20, threshold=0.5):
    pins = Pins()
    pins = pins.get_candidates(offset, num, threshold)
    return [{'pin_id': str(pin[0]), 'uri': str(pin[1])} for pin in pins]
コード例 #2
0
ファイル: expose.py プロジェクト: after12am/mayb
def get_candidates(offset=0, num=20, threshold=0.5):
    pins = Pins()
    pins = pins.get_candidates(offset, num, threshold)
    return [{'pin_id':str(pin[0]), 'uri':str(pin[1])} for pin in pins]