diff --git a/cookbook/helper/recipe_search.py b/cookbook/helper/recipe_search.py index 150945f1a..948152099 100644 --- a/cookbook/helper/recipe_search.py +++ b/cookbook/helper/recipe_search.py @@ -32,6 +32,9 @@ class RecipeSearch(): if custom_filter: self._params = {**json.loads(custom_filter.search)} self._original_params = {**(params or {})} + # json.loads casts rating as an integer, expecting string + if isinstance(self._params.get('rating', None), int): + self._params['rating'] = str(self._params['rating']) else: self._params = {**(params or {})} else: