JI511 / Personal_Fitness

Personal Python project to improve skills and explore different libraries. Open to any and all contributions. Using a local database with sqlite3 to learn SQL.
MIT License
0 stars 0 forks source link

Added Nutritional database #54

Closed mdamonconnolly closed 5 years ago

mdamonconnolly commented 5 years ago

This adds a nutrition database instead of the text file. The database will take in fat, protein and carbs and calculate the calories from this. It also takes in water intake (Can't remember where, but somewhere I saw it mentioned that this was being considered). This also gives the benefit of being able to dump the nutrition database table to .csv file.

JI511 commented 5 years ago

Please take a look at the other pull request, 'Pr/54 Updated branch'. I added some error checking and cleaned up the update_item call at the bottom. I am not 100 percent sure why my commit didn't add on to this pull request, but it seemed to force me to create a new one. Let me know if you have any questions. I will wait to accept the other PR until you have accepted the changes.