I noticed that nutrition information was not being calculated for certain foods in my recipes. I eventually figured out that it was because the quantities were specified in tbsp in the recipe, but the conversion for that food was cup <-> g, and tandoor was failing to automatically handle the tbsp <-> cup conversion. Looking at the code, it appears that cup is missing from the conversion table constant. Given its prevalence in US recipes, I think cup should be a base volume unit, and it appears it was considered as such in the initial proposal. It may have been overlooked during implementation.
Tandoor Version
1.5.18
Setup
Docker / Docker-Compose
Reverse Proxy
No reverse proxy
Other
No response
Bug description
I noticed that nutrition information was not being calculated for certain foods in my recipes. I eventually figured out that it was because the quantities were specified in
tbsp
in the recipe, but the conversion for that food wascup <-> g
, and tandoor was failing to automatically handle thetbsp <-> cup
conversion. Looking at the code, it appears thatcup
is missing from the conversion table constant. Given its prevalence in US recipes, I thinkcup
should be a base volume unit, and it appears it was considered as such in the initial proposal. It may have been overlooked during implementation.Relevant logs
No response