mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-20 00:21:04 +00:00
12 lines
372 B
Python
12 lines
372 B
Python
|
''' 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)
|