From 358c5e76d67477b26d841985649b9279d7633fc3 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 1 May 2023 18:07:55 +0200 Subject: Switch to tripel to describe ingredients It is always the same: - amount float32 - unit string - type string This is good as a starting point. Later the types of ingredients might have to be tracked. In this a string as key is maybe not the best. --- data/storage/recipes/1/text | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/storage/recipes/1/text') diff --git a/data/storage/recipes/1/text b/data/storage/recipes/1/text index d082bf7..1c4acb8 100644 --- a/data/storage/recipes/1/text +++ b/data/storage/recipes/1/text @@ -6,7 +6,7 @@ { "text":"Bake the frozen pizza!", "ingredients":[ - {"type":"pizza", "amount":"4 pieces"} + {"amount":4, "unit":"pieces", "type":"pizza"} ] } ] -- cgit v1.2.3-70-g09d2