Tests for goodreads import lookup
This commit is contained in:
parent
97b56e9bc2
commit
3344eed3b9
3 changed files with 70 additions and 6 deletions
|
@ -9,8 +9,7 @@ from .abstract_connector import AbstractConnector, SearchResult
|
|||
class Connector(AbstractConnector):
|
||||
''' instantiate a connector '''
|
||||
def search(self, query, min_confidence=0.1):
|
||||
''' right now you can't search bookwyrm sorry, but when
|
||||
that gets implemented it will totally rule '''
|
||||
''' search your local database '''
|
||||
vector = SearchVector('title', weight='A') +\
|
||||
SearchVector('subtitle', weight='B') +\
|
||||
SearchVector('authors__name', weight='C') +\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue