ephes / kptncook

Fetch receipts from kptncook API and export them to mealie or paprika
MIT License
42 stars 4 forks source link

Ingredients list enhancements #38

Open ValleBL opened 5 months ago

ValleBL commented 5 months ago

Currently the ingredient is also set as the title for the entry. This will overload the list of ingredients. For me I've changed the title property to null resulting in a clean list.

title="", quantity=quantity, unit=measure, note=note, food=food Maybe overthink this or make it a toggle option in the ENV file.

Furthermore while inspecting the json response I came across the attribute "ingredient.ingredient.typ" (Value "regular" or "basic") I guess this represent the two groups "Du brauchst" (-> regular) and "Das hast du bestimmt zu Hause" ("basic")

I tried adding python code to group the ingredients by the typ, but unfourtuantly did not found a working solution. Maybe someone with better python skills can review this.