mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
d9c4daca61
commit
c698c46af4
|
@ -1175,8 +1175,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
|
||||||
return -1
|
return -1
|
||||||
book_rating = 0.0
|
book_rating = 0.0
|
||||||
if fields.get('bookrating'):
|
if fields.get('bookrating'):
|
||||||
if isinstance(fields['bookrating'], float) or \
|
if isinstance(fields['bookrating'], (float, int)):
|
||||||
isinstance(fields['bookrating'], int):
|
|
||||||
book_rating = fields['bookrating']
|
book_rating = fields['bookrating']
|
||||||
media_license_url = content_license_url
|
media_license_url = content_license_url
|
||||||
if fields.get('mediaLicense'):
|
if fields.get('mediaLicense'):
|
||||||
|
|
Loading…
Reference in New Issue