Tests for goodreads import lookup

This commit is contained in:
Mouse Reeve
2021-01-02 11:29:50 -08:00
parent 97b56e9bc2
commit 3344eed3b9
3 changed files with 70 additions and 6 deletions

View File

@ -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') +\