excludeFromTreeMap generalized to excludeFromNoteMap

This commit is contained in:
zadam
2021-10-03 11:04:56 +02:00
parent 75fc9e2048
commit a1ca538106
4 changed files with 13 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
const becca = require('../../src/becca/becca');
const beccaLoader = require('../../src/becca/becca_loader');
const cls = require('../../src/services/cls');
module.exports = () => {
cls.init(() => {
beccaLoader.load();
for (const note of Object.values(becca.notes)) {
if (note.hasLabel('calendarRoot')) {
note.addLabel('excludeFromNoteMap', "", true);
}
}
});
};