mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-02 21:38:43 +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
|
search_term, min_confidence=0.1
|
||||||
)
|
)
|
||||||
if search_result:
|
if search_result:
|
||||||
|
if isinstance(search_result, Edition):
|
||||||
|
return (search_result, 1)
|
||||||
# raises ConnectorException
|
# raises ConnectorException
|
||||||
return (
|
return (
|
||||||
search_result.connector.get_or_create_book(search_result.key),
|
search_result.connector.get_or_create_book(search_result.key),
|
||||||
|
|
Loading…
Reference in a new issue