forked from mirrors/bookwyrm
Fixes title/author search handling
This commit is contained in:
parent
60c777ed49
commit
e09c02017c
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,8 @@ class ImportItem(models.Model):
|
|||
search_term, min_confidence=0.1
|
||||
)
|
||||
if search_result:
|
||||
if isinstance(search_result, Edition):
|
||||
return (search_result, 1)
|
||||
# raises ConnectorException
|
||||
return (
|
||||
search_result.connector.get_or_create_book(search_result.key),
|
||||
|
|
Loading…
Reference in a new issue