Merge branch 'main' of gitea.hottis.de:moerp/Elo-rezept-rechner
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
moerp 2024-01-30 18:08:15 +01:00
commit 3a17338358

View File

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