Created
August 14, 2022 18:31
-
-
Save dredhorse/e806d04ff2377d6c877536615d380376 to your computer and use it in GitHub Desktop.
Issue with p.week.path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```dataviewjs | |
dv.table( | |
["Learnt Words", "Meaning"], | |
dv.pages('"200 Journaling/201 Daily"') | |
.filter(p => p["Learnt Words"] && p.week.path == '"2022-W32"') | |
.sort(p => dv.date(p.file.name), 'asc') | |
.flatMap(p => | |
Array.from( | |
{ | |
length: Math.floor( | |
p["Learnt Words"].length / 2 | |
) | |
}, | |
(_, i) => [ | |
`${'**'}${p["Learnt Words"][i * 2]}${'**'}`, | |
p["Learnt Words"][(i * 2) +1] | |
] | |
) | |
) | |
) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment