🎨 数据历史文档中支持操作类型过滤 https://github.com/siyuan-note/siyuan/issues/5754
This commit is contained in:
parent
150ebe2d1a
commit
49e6d708d6
1 changed files with 2 additions and 1 deletions
|
@ -283,7 +283,7 @@ func FullTextSearchHistory(query, box, op string, typ, page int) (ret []*History
|
|||
}
|
||||
|
||||
if HistoryTypeDoc == typ {
|
||||
stmt += " AND path LIKE '%/" + box + "/%'"
|
||||
stmt += " AND path LIKE '%/" + box + "/%' AND path LIKE '%.sy'"
|
||||
} else if HistoryTypeAsset == typ {
|
||||
stmt += " AND path LIKE '%/assets/%'"
|
||||
}
|
||||
|
@ -494,6 +494,7 @@ func ReindexHistory() (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
sql.InitHistoryDatabase(true)
|
||||
lutEngine := NewLute()
|
||||
for _, historyDir := range historyDirs {
|
||||
if !historyDir.IsDir() {
|
||||
|
|
Loading…
Add table
Reference in a new issue