From 0b60c27f32a520c526e8055fa0b01b12bf5cf43d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 16 Mar 2021 18:11:04 +0100 Subject: [PATCH] [pricelist] fixed set volumes --- flaschengeist/plugins/pricelist/pricelist_controller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flaschengeist/plugins/pricelist/pricelist_controller.py b/flaschengeist/plugins/pricelist/pricelist_controller.py index 2e1b69f..e5725b0 100644 --- a/flaschengeist/plugins/pricelist/pricelist_controller.py +++ b/flaschengeist/plugins/pricelist/pricelist_controller.py @@ -135,7 +135,10 @@ def set_volume(identifier, data): if "id" in data: data.pop("id") values = {key: value for key, value in data.items() if key in allowed_keys} - + if "prices" in values: + prices = values.pop("prices") + if "ingredients" in values: + ingredients = values.pop("ingredients") volume = DrinkPriceVolume(**values) drink = get_drink(identifier) if not drink: