2 Commits
0.2.0 ... 0.2.2

Author SHA1 Message Date
f0fcbc3c56 trigger pipeline
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-01-30 20:43:17 +01:00
1e8ae0105a to many row
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-01-30 19:38:49 +01:00
2 changed files with 6 additions and 7 deletions

View File

@ -141,7 +141,6 @@ def get_token():
app = ProxyFix(app, x_for=1, x_host=1) app = ProxyFix(app, x_for=1, x_host=1)

View File

@ -154,12 +154,12 @@ function updateTotalNutrition() {
// Durchlaufen aller Zeilen in der Haupttabelle und Addition der Werte // Durchlaufen aller Zeilen in der Haupttabelle und Addition der Werte
Array.from(document.getElementById('nutrition-table').rows).slice(1).forEach(row => { Array.from(document.getElementById('nutrition-table').rows).slice(1).forEach(row => {
totalKcal += parseFloat(row.cells[4].innerText); totalKcal += parseFloat(row.cells[2].innerText);
totalEw += parseFloat(row.cells[4].innerText); totalEw += parseFloat(row.cells[3].innerText);
totalFett += parseFloat(row.cells[5].innerText); totalFett += parseFloat(row.cells[4].innerText);
totalKh += parseFloat(row.cells[6].innerText); totalKh += parseFloat(row.cells[5].innerText);
totalBst += parseFloat(row.cells[7].innerText); totalBst += parseFloat(row.cells[6].innerText);
totalCa += parseFloat(row.cells[8].innerText); totalCa += parseFloat(row.cells[7].innerText);
}); });
// Rundung und Aktualisierung der Gesamtwerte // Rundung und Aktualisierung der Gesamtwerte