Path to update books
This commit is contained in:
@ -57,7 +57,7 @@ class AbstractConnector(ABC):
|
||||
|
||||
|
||||
@abstractmethod
|
||||
def update_book(self, book_obj):
|
||||
def update_book(self, book_obj, data=None):
|
||||
''' sync a book with the canonical remote copy '''
|
||||
# return book model obj
|
||||
|
||||
|
@ -140,7 +140,7 @@ class Connector(AbstractConnector):
|
||||
return book
|
||||
|
||||
|
||||
def update_book(self, book):
|
||||
def update_book(self, book, data=None):
|
||||
''' load new data '''
|
||||
if not book.sync and not book.sync_cover:
|
||||
return
|
||||
|
@ -23,7 +23,6 @@ class Connector(AbstractConnector):
|
||||
SearchVector('isbn_10', weight='A') +\
|
||||
SearchVector('openlibrary_key', weight='B') +\
|
||||
SearchVector('goodreads_key', weight='B') +\
|
||||
SearchVector('source_url', weight='B') +\
|
||||
SearchVector('asin', weight='B') +\
|
||||
SearchVector('oclc_number', weight='B') +\
|
||||
SearchVector('description', weight='C') +\
|
||||
|
Reference in New Issue
Block a user