Rewrite rating method to be readable
@@ -201,7 +201,10 @@ def show_id(self):
@memoize
@rate_limit(retries=1)
def rating(self):
- return int(self.item.userRating) if self.item.userRating is not None else None
+ if self.item.userRating is None:
+ return None
+
+ return int(self.item.userRating)
@property
@memoize
