Fixes title/author search handling

This commit is contained in:
Mouse Reeve 2021-11-12 14:46:39 -08:00
parent 60c777ed49
commit e09c02017c

View file

@ -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),