From 3d177566edc451f9869fca1224dc28b806c25c94 Mon Sep 17 00:00:00 2001 From: Tom Strange Date: Mon, 3 Nov 2025 18:09:00 +0000 Subject: [PATCH] fix: Include contents of purpose field when parsing ingredients (#6494) --- mealie/services/parser_services/ingredient_parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mealie/services/parser_services/ingredient_parser.py b/mealie/services/parser_services/ingredient_parser.py index 1f042f988..2f26a1ae5 100644 --- a/mealie/services/parser_services/ingredient_parser.py +++ b/mealie/services/parser_services/ingredient_parser.py @@ -133,6 +133,9 @@ class NLPParser(ABCIngredientParser): if ingredient.comment: note_parts.append(ingredient.comment.text) confidences.append(ingredient.comment.confidence) + if ingredient.purpose: + note_parts.append(ingredient.purpose.text) + confidences.append(ingredient.purpose.confidence) # average confidence among all note parts confidence = sum(confidences) / len(confidences) if confidences else 0