2020-03-07 20:22:28 +00:00
|
|
|
''' select and call a connector for whatever book task needs doing '''
|
|
|
|
from fedireads.connectors import OpenLibraryConnector
|
|
|
|
|
|
|
|
openlibrary = OpenLibraryConnector()
|
|
|
|
def get_or_create_book(key):
|
|
|
|
''' pull up a book record by whatever means possible '''
|
|
|
|
return openlibrary.get_or_create_book(key)
|
|
|
|
|
|
|
|
def search(query):
|
|
|
|
''' ya '''
|
|
|
|
return openlibrary.search(query)
|
2020-03-27 21:14:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
def update_book(key):
|
|
|
|
return openlibrary.update_book(key)
|