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

feat: importing meals via CSV + local barcode search #122

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

dd-dreams
Copy link

@dd-dreams dd-dreams commented Oct 8, 2024

This PR enables users to add meals via a CSV file. It adds a new button in the settings page "Import CSV" - when pressed, the user selects a file from the file picker, afterwards if the file is valid, all the meals present there will be added to the database under "Products".

The CSV format should have the following columns (not necessarily in the same order of keys):

name,protein,total_sugars,saturated_fat,total_fat,food_energy,carbohydrates,fiber,barcode

These names are necessary for the import to work.

This PR also adds a new field to the database: "barcode" for searching locally with barcodes.

Please suggest any changes if needed.

@dd-dreams dd-dreams changed the title feat: add importing meals via CSV feat: importing meals via CSV + local barcode search Oct 14, 2024
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.

2 participants