You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Relevant logs
No response
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: