mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-28 11:00:36 +00:00
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