vault backup: 2023-09-28 14:20:14

This commit is contained in:
2023-09-28 14:20:15 +02:00
parent 5cda651821
commit 98f82c59b4
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
tags:
- sport/exercise
---
Name:: Ab crunch machine
Name:: Side ab machine
Forearms:: 0
Biceps:: 0
Triceps:: 0

View File

@@ -191,6 +191,7 @@ totals.Name = "Totals"
dv.table(muscleGroups, [Object.values(totals)])
```
## Friday
```dataviewjs
let workout = {
@@ -227,10 +228,9 @@ let muscleGroups = [
"Calves"
]
let totals = muscleGroups.reduce((ac,a) => ({...ac,[a]:0}),{});
dv.pages(pagesAsStr)
.map(ex => Array.from(Object.keys(workout),
.map(ex => Array.from(muscleGroups,
group => totals[group] += ex[group] > 0 ? ex[group]*workout[ex.name] : ex[group]))
totals.Name = "Totals"