parent
0c9aad730d
commit
06ff795df1
5 changed files with 42 additions and 14 deletions
|
@ -23,6 +23,11 @@ def search(query):
|
|||
connector = get_connector()
|
||||
return connector.search(query)
|
||||
|
||||
def update_book(book):
|
||||
''' re-sync with the original data source '''
|
||||
connector = get_connector(book)
|
||||
connector.update_book(book)
|
||||
|
||||
|
||||
def get_connector(book=None):
|
||||
''' pick a book data connector '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue