Merge pull request #65 from ThomasRubini/recipe_search

This commit is contained in:
Thomas Rubini 2023-01-24 14:50:37 +01:00 committed by GitHub
commit bac9398f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,10 @@ final class RecipeModel
) )
-- get a row per occurrence and sort by occurrences number -- get a row per occurrence and sort by occurrences number
select RECIPE.ID, RECIPE.NAME select RECIPE.ID, RECIPE.NAME,
CONCAT('/recipe/view/', RECIPE.ID) AS RECIPE_LINK,
CONCAT('/static/img/recipes/', RECIPE.ID) AS IMG_LINK,
1 AS NOTE
from CTE from CTE
JOIN RECIPE JOIN RECIPE
WHERE CTE.NAME is not null WHERE CTE.NAME is not null