From c698c46af4761058c139467d03d0a36ed9686024 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 9 May 2024 13:19:02 +0100 Subject: [PATCH] Tidying --- daemon_post_receive.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon_post_receive.py b/daemon_post_receive.py index 4b1939d57..345e1a8f3 100644 --- a/daemon_post_receive.py +++ b/daemon_post_receive.py @@ -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'):