token
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-01-30 18:26:27 +01:00
parent 8bc3857482
commit 5f34449601
Signed by: wn
GPG Key ID: 836E9E1192A6B132

View File

@ -104,7 +104,7 @@ def convert_decimal(value):
@app.route('/add_nutrition', methods=['POST']) @app.route('/add_nutrition', methods=['POST'])
@oidc.accept_token() @oidc.accept_token(True)
def add_nutrition(): def add_nutrition():
food = request.form.get('food') food = request.form.get('food')
kcal = convert_decimal(request.form.get('kcal')) kcal = convert_decimal(request.form.get('kcal'))