const durNum = 5;
const durType = "days"
// update ctime to mtime if needs be
function timeSinceCreationInDays(p) {
return luxon.Interval.fromDateTimes(
p.file.ctime,
luxon.DateTime.now()
).length(durType);
}
dv.list(dv.pages("").filter(p => timeSinceCreationInDays(p) <= durNum).file.link);
自从升级dataviewr后,这段代码为何显示为:
Dataview JS queries are disabled. You can enable them in the Dataview settings.
OB版本为1.1.9;dataview版本为0.5.55。