Send connector with search result
also fix typo in get_work_from_edition_data function
This commit is contained in:
@ -76,7 +76,7 @@ class ImportItem(models.Model):
|
||||
)
|
||||
if search_result:
|
||||
# raises ConnectorException
|
||||
return books_manager.get_or_create_book(search_result.key)
|
||||
return search_result.connector.get_or_create_book(search_result.key)
|
||||
return None
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ class ImportItem(models.Model):
|
||||
)
|
||||
if search_result:
|
||||
# raises ConnectorException
|
||||
return books_manager.get_or_create_book(search_result.key)
|
||||
return search_result.connector.get_or_create_book(search_result.key)
|
||||
return None
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user