vault backup: 2023-08-31 07:15:20
This commit is contained in:
@@ -9,12 +9,6 @@ year: 2023
|
|||||||
## Notes ✏
|
## Notes ✏
|
||||||
-
|
-
|
||||||
|
|
||||||
```
|
|
||||||
let pg = dv.current();
|
|
||||||
|
|
||||||
var habitArray = [ ["Sport"], ["Stretching"] ];
|
|
||||||
const tasks = pg.file.tasks.sort(t => dv.date(t.due)).where(t => { if(!t.text.includes("#habit")) { return false; } for (let i = 0; i < habitArray.length; i++) { if(t.text.includes(habitArray[i][0])) { if(t.completion) { habitArray[i].push("✅"); } else { habitArray[i].push("❌"); } } } return true; }); dv.table( ["Habit", "M","T","W","TH","F","SA","SU"], habitArray);
|
|
||||||
```
|
|
||||||
|
|
||||||
## History
|
## History
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user