使用调用以下模板文件出现报错。 1.96 版本正常, 1.97 1.98 都是报错
## .action{ now | date "2006-01-02 Mon "} 今天更新的笔记文档
.action{$today := now | date "20060102"}
.action{$next := (now | date_modify "+24h")| date "20060102"}
.action{$blocks :=queryBlocks "SELECT * FROM blocks WHERE id in (SELECT root_id FROM blocks WHERE (updated >= '?' AND updated <= '?' AND root_id != '?')) order by updated DESC " $today $next .id}
.action{range $v := $blocks}
- [.action{$v.HPath}](siyuan://blocks/.action{$v.ID})
.action{end}
报错图如下
模板解析失败:template: :8:18: executing "" at <queryBlocks "SELECT * FROM blocks WHERE id in (SELECT root_id FROM blocks WHERE (updated >= '?' AND updated <= '?' AND root_id != '?')) order by updated DESC " $today $next .id>: error calling queryBlocks: interface conversion: sqlparser.Expr is *sqlparser.Subquery, not *sqlparser.SQLVal
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于