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: