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

fix: 634 - mapped tag 'energy' to Nutrient energyKj. #644

Merged
merged 2 commits into from
Dec 17, 2022

Conversation

monsieurtanuki
Copy link
Contributor

Impacted file:

  • Nutrient.dart: now manages the special duplicate case 'energy' / 'energy-kj'

What

  • In recent refactoring we got rid of the duplicate case 'energy' / 'energy-kj' (both in kj)
  • This PR fixes a forgotten case: ok we use only one Nutrient called energyKj, that not only matches with offTag 'energy-kj' but also with 'energy'

Fixes bug(s)

Impacted file:
* `Nutrient.dart`: now manages the special duplicate case `'energy'` / `'energy-kj'`
@monsieurtanuki monsieurtanuki merged commit 3957139 into openfoodfacts:master Dec 17, 2022
@monsieurtanuki
Copy link
Contributor Author

Thank you @M123-dev!

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.

energy / energyKj confusion fix
2 participants