%%tp.user.courseIncFilename(tp)
%%
%%```dataviewjs const {update} = this.app.plugins.plugins[“metaedit”].api; var page = dv.page(dv.currentFilePath) var i_done=0, i_no=0; page.file.tasks.filter(t => { if(t.completed){i_done++;} else{i_no++;} }) if (page.Status_Code == 1) { if(i_done == (i_done+i_no)) { update(‘Status’, ‘🟩Completed’, page.file.path) //console.log(“Completed”) } else if(i_done > 0 && i_done < (i_done+i_no)) { update(‘Status’, ‘🟨In Progress’, page.file.path) //console.log(“In Progress”) } } else if (page.Status_Code == 0) { update(‘Status’, ‘🟥Not Started’, page.file.path) } else { update(‘Status’, ‘🟧Pause’, page.file.path) }
1
2# <u>Lectures:</u>
3- [ ] 01_
4- [ ] 02_
5- [ ] 03_
6
7# <u>Codes:</u>
8##### title
9```js
10console.log('Hi!')