Skip to content

fix: handle case when parsed.name is single item#720

Merged
TomBursch merged 1 commit intoTomBursch:mainfrom
crosspolar:fix/parsed_name_can_be_single_item
Apr 23, 2025
Merged

fix: handle case when parsed.name is single item#720
TomBursch merged 1 commit intoTomBursch:mainfrom
crosspolar:fix/parsed_name_can_be_single_item

Conversation

@crosspolar
Copy link
Copy Markdown
Collaborator

@crosspolar crosspolar commented Apr 21, 2025

Resolves #719
If you can reproduce the problem, we can pass the problem on to the maintainer of IngredientParser, that only one list will be returned in the future.

I removed your length-check because an empty list is evaluated as False, so if parsed.name is only True if the list is not empty. With the below nlpAmountToDescription i hadn't a problem yet

@TomBursch TomBursch merged commit ac7878f into TomBursch:main Apr 23, 2025
1 check passed
w0s1nsk1 added a commit to w0s1nsk1/kitchenowl that referenced this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: object of type 'IngredientText' has no len()

2 participants