ibeal / KitchenDB

A personal project to create something that can track inventory and recipes to suggest recipes to make determined by inventory
2 stars 0 forks source link

Ingredient Object #47

Open ibeal opened 3 years ago

ibeal commented 3 years ago

This will replace the ingredient tuple that is currently in place. The ingredient object should store an amount, unit, usda id, and food name. The ingredient Object will have a conversion object (filled with the amount and unit from the class) that it can use to convert it's units.

It should be noted that this class will be different than the nutrition object, which will hold the nutrition information from the usda foods endpoint for a given usda id's serving size.

The idea is that the nutrition info can be calculated from the nutrition object's serving size being converted to the ingredient object amount.