From 583aee204e238e77e145d53b33160c86aeefbe8e Mon Sep 17 00:00:00 2001 From: Chris Scoggins Date: Tue, 1 Feb 2022 11:38:11 -0600 Subject: [PATCH] fix view recipes in Model View --- cookbook/helper/recipe_search.py | 6 +++--- vue/src/apps/RecipeSearchView/RecipeSearchView.vue | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/cookbook/helper/recipe_search.py b/cookbook/helper/recipe_search.py index c119d58ab..b1032a4d1 100644 --- a/cookbook/helper/recipe_search.py +++ b/cookbook/helper/recipe_search.py @@ -41,19 +41,19 @@ class RecipeSearch(): self._string = params.get('string').strip() if params.get('string', None) else None self._rating = self._params.get('rating', None) self._keywords = { - 'or': self._params.get('keywords_or', None), + 'or': self._params.get('keywords_or', None) or self._params.get('keywords', None), 'and': self._params.get('keywords_and', None), 'or_not': self._params.get('keywords_or_not', None), 'and_not': self._params.get('keywords_and_not', None) } self._foods = { - 'or': self._params.get('foods_or', None), + 'or': self._params.get('foods_or', None) or self._params.get('foods', None), 'and': self._params.get('foods_and', None), 'or_not': self._params.get('foods_or_not', None), 'and_not': self._params.get('foods_and_not', None) } self._books = { - 'or': self._params.get('books_or', None), + 'or': self._params.get('books_or', None) or self._params.get('books', None), 'and': self._params.get('books_and', None), 'or_not': self._params.get('books_or_not', None), 'and_not': self._params.get('books_and_not', None) diff --git a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue index 08288287f..daf75b3da 100644 --- a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue +++ b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue @@ -498,7 +498,7 @@
-