Send connector with search result
also fix typo in get_work_from_edition_data function
This commit is contained in:
parent
9f74e95b00
commit
ac261d7b1a
6 changed files with 65 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue