3 Commits
0.1.2 ... 0.1.3

Author SHA1 Message Date
2c499b363b 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
2024-01-30 17:03:14 +01:00
39e2f2634d small
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-01-30 17:03:00 +01:00
ffa6944e7b fix auth for add_nut... 2024-01-30 17:02:58 +01:00
2 changed files with 1 additions and 3 deletions

View File

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

View File

@ -7,8 +7,6 @@
<link rel="shortcut icon" href="../static/images/favicon.ico"> <link rel="shortcut icon" href="../static/images/favicon.ico">
<script> <script>
// JavaScript-Funktion, um die Produkte beim Laden der Seite zu holen
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
cleanUpLocalStorage(); cleanUpLocalStorage();
restoreTableFromLocalStorage(); restoreTableFromLocalStorage();