Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amount calculated from OpenFoodFacts is still incorrect #171

Open
Dilden opened this issue Jan 22, 2024 · 2 comments
Open

Amount calculated from OpenFoodFacts is still incorrect #171

Dilden opened this issue Jan 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Dilden
Copy link
Owner

Dilden commented Jan 22, 2024

In src/utils/sources where const amount (line 73) is set is still not quite right. Look through documentation on OpenFoodFacts to correctly calculate a serving size of returned nutrients.

@Dilden Dilden added the bug Something isn't working label Jan 22, 2024
@jimmyhogoboom
Copy link
Collaborator

Do you have an example product where the current logic gives incorrect output?

@Dilden
Copy link
Owner Author

Dilden commented Mar 11, 2024

The barcode 027000523858 returns incorrect information for me. It may be that the API has complete information but the calculation to get the correct values per serving is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants