mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
5.65k stars 613 forks source link

fix: NLP Ingredient Parser Misses Some Fractions #3618

Closed michael-genson closed 1 month ago

michael-genson commented 1 month ago

What type of PR is this?

(REQUIRED)

What this PR does / why we need it:

(REQUIRED)

Sometimes the NLP Parser misses fractions. We actually already fixed this using a Pydantic validator, but the upgrade to Pydantic 2 broke it (because of course it did).

Which issue(s) this PR fixes:

(REQUIRED)

Fixes https://github.com/mealie-recipes/mealie/issues/3318

Special notes for your reviewer:

(fill-in or delete this section)

Testing

(fill-in or delete this section)

Installed CRFPP locally and verified the test case in https://github.com/mealie-recipes/mealie/issues/3318 parses correctly