mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
perf(backend): ⚡ remove validation on recipe summary response (#718)
* count responses * perf(backend): ⚡ remove validation on recipe summary response use the construct() method from pydantic to reduce get time as well as optimize the SQL query for recipes * update UI to support new categories/tags * fix(backend): 🐛 restrict recipes by group Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
parent
f9829141c0
commit
568215cf70
10 changed files with 82 additions and 37 deletions
|
@ -122,10 +122,15 @@ export default defineComponent({
|
|||
},
|
||||
filteredRecipes() {
|
||||
return this.allRecipes.filter((recipe) => {
|
||||
const includesTags = this.check(this.includeTags, recipe.tags, this.tagFilter.matchAny, this.tagFilter.exclude);
|
||||
const includesTags = this.check(
|
||||
this.includeTags,
|
||||
recipe.tags.map((x) => x.name),
|
||||
this.tagFilter.matchAny,
|
||||
this.tagFilter.exclude
|
||||
);
|
||||
const includesCats = this.check(
|
||||
this.includeCategories,
|
||||
recipe.recipeCategory,
|
||||
recipe.recipeCategory.map((x) => x.name),
|
||||
this.catFilter.matchAny,
|
||||
this.catFilter.exclude
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue