Пример #1
0
def search(field, value):
    locs = search_query(field, value)
    print(locs)
    if locs:
        return show_locs(locs, value if field == 'isbn' else None)
    else:
        return value + ' not found'
Пример #2
0
def search(field, value):
    locs = search_query(field, value)
    print(locs)
    if locs:
        return show_locs(locs, value if field == 'isbn' else None)
    else:
        return value + ' not found'
Пример #3
0
def search(field, value):
    locs = search_query(field, value)
    if locs:
        show_locs(locs, value if field == "isbn" else None)
    else:
        print value, " not found"