vault backup: 2025-12-10 11:37:35

This commit is contained in:
2023-05-15 17:16:05 +02:00
committed by Thomas Peetz
parent 91bf72fc87
commit 73f2162ddf
6049 changed files with 513094 additions and 227748 deletions
+19
View File
@@ -0,0 +1,19 @@
// Find all linked projects
const projectPage = dv.page(input.file);
const tasks = projectPage.file.inlinks.where((p) => {
const mp = dv.page(p.path);
return mp.tags?.includes("process/task");
});
const totalProjectTasks = projectPage.file.tasks.length;
let totalTasks = 0;
tasks.values.reduce((acc, p) => {
const mp = dv.page(p.path);
const tasks = mp.file.tasks;
totalTasks += tasks.length;
return mp.file.tasks.length;
}, 0);
dv.span(totalProjectTasks + totalTasks);