Skip to content

Instantly share code, notes, and snippets.

@dredhorse
Created August 14, 2022 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dredhorse/e806d04ff2377d6c877536615d380376 to your computer and use it in GitHub Desktop.
Save dredhorse/e806d04ff2377d6c877536615d380376 to your computer and use it in GitHub Desktop.
Issue with p.week.path
```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