main
Bob Mottram 2024-05-09 13:19:02 +01:00
parent d9c4daca61
commit c698c46af4
1 changed files with 1 additions and 2 deletions

View File

@ -1175,8 +1175,7 @@ def _receive_new_post_process(self, post_type: str, path: str, headers: {},
return -1
book_rating = 0.0
if fields.get('bookrating'):
if isinstance(fields['bookrating'], float) or \
isinstance(fields['bookrating'], int):
if isinstance(fields['bookrating'], (float, int)):
book_rating = fields['bookrating']
media_license_url = content_license_url
if fields.get('mediaLicense'):