mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
small ol data fixes
This commit is contained in:
parent
3a7c3724ad
commit
c0ead910a4
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ class Connector(AbstractConnector):
|
||||||
'publish_date': ('published_date', get_date),
|
'publish_date': ('published_date', get_date),
|
||||||
'first_publish_date': ('first_published_date', get_date),
|
'first_publish_date': ('first_published_date', get_date),
|
||||||
'description': ('description', get_description),
|
'description': ('description', get_description),
|
||||||
'isbn_13': ('isbn', None),
|
'isbn_13': ('isbn', lambda a: a[0]),
|
||||||
'oclc_numbers': ('oclc_number', lambda a: a[0]),
|
'oclc_numbers': ('oclc_number', lambda a: a[0]),
|
||||||
'lccn': ('lccn', lambda a: a[0]),
|
'lccn': ('lccn', lambda a: a[0]),
|
||||||
'languages': ('languages', get_languages),
|
'languages': ('languages', get_languages),
|
||||||
|
@ -91,7 +91,7 @@ class Connector(AbstractConnector):
|
||||||
|
|
||||||
if 'identifiers' in data:
|
if 'identifiers' in data:
|
||||||
if 'goodreads' in data['identifiers']:
|
if 'goodreads' in data['identifiers']:
|
||||||
book.goodreads_key = data['identifiers']['goodreads']
|
book.goodreads_key = data['identifiers']['goodreads'][0]
|
||||||
|
|
||||||
if not book.connector:
|
if not book.connector:
|
||||||
book.connector = self.connector
|
book.connector = self.connector
|
||||||
|
|
Loading…
Reference in a new issue