[pricelist] black code

This commit is contained in:
Tim Gröger 2021-04-14 22:43:28 +02:00
parent 1d36c3ef6c
commit 32ad4471c6
1 changed files with 80 additions and 79 deletions

View File

@ -248,7 +248,7 @@ def create_drink(current_session):
Route: ``/pricelist/drinks`` | Method: ``POST``
POST-data :
``{
``{
article_id?: string
cost_per_package?: float,
cost_per_volume?: float,
@ -280,7 +280,7 @@ def create_drink(current_session):
volume: float
}
]
}``
}``
Args:
current_session: Session sent with Authorization Header
@ -300,7 +300,7 @@ def update_drink(identifier, current_session):
Route: ``/pricelist/drinks/<identifier>`` | Method: ``PUT``
POST-data :
``{
``{
article_id?: string
cost_per_package?: float,
cost_per_volume?: float,
@ -332,7 +332,7 @@ def update_drink(identifier, current_session):
volume: float
}
]
}``
}``
Args:
identifier: Identifier of Drink
@ -511,6 +511,7 @@ def get_pricelist_settings_min_prices(current_session):
min_prices = []
return jsonify(min_prices)
@PriceListPlugin.blueprint.route("/settings/min_prices", methods=["POST"])
@login_required(permission=permissions.EDIT_MIN_PRICES)
def post_pricelist_settings_min_prices(current_session):