🎨 数据历史文档支持只读可视化预览 https://github.com/siyuan-note/siyuan/issues/5735
This commit is contained in:
parent
668cc4b17b
commit
0457172f9b
1 changed files with 3 additions and 3 deletions
|
@ -279,11 +279,11 @@ func FullTextSearchHistory(query, box, op string, typ, page int) (ret []*History
|
|||
} else {
|
||||
stmt += "1=1"
|
||||
}
|
||||
if "all" != op {
|
||||
stmt += " AND op = '" + op + "'"
|
||||
}
|
||||
|
||||
if HistoryTypeDoc == typ {
|
||||
if "all" != op {
|
||||
stmt += " AND op = '" + op + "'"
|
||||
}
|
||||
stmt += " AND path LIKE '%/" + box + "/%' AND path LIKE '%.sy'"
|
||||
} else if HistoryTypeAsset == typ {
|
||||
stmt += " AND path LIKE '%/assets/%'"
|
||||
|
|
Loading…
Add table
Reference in a new issue