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

recipe ID function #40

Closed ibeal closed 3 years ago

ibeal commented 3 years ago

The recipe class will get a new ID function, that will package the information needed to find the recipe in the database, currently title and source. The recipe class will also get a id_delimiter field that will be the value in between the different fields of the id.

The current idea for implementation is for the id_delimiter to be " by: ", so that the id string returned from id is "{title} by: {source}"

using this will help the gui to display a recipe shorthand, and pass the needed information to the database for searching

ibeal commented 3 years ago

id function is completed, also all data_containers are required to have it