vault backup: 2023-09-28 14:20:14
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
tags:
|
||||
- sport/exercise
|
||||
---
|
||||
Name:: Ab crunch machine
|
||||
Name:: Side ab machine
|
||||
Forearms:: 0
|
||||
Biceps:: 0
|
||||
Triceps:: 0
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user