🎨 Data History - File history - Assets search results and operation conditions do not match https://github.com/siyuan-note/siyuan/issues/11171

This commit is contained in:
Daniel 2024-04-27 22:09:48 +08:00
parent 7f575be6ba
commit 239a1434e1
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -404,11 +404,11 @@ func buildSearchHistoryQueryFilter(query, op, box, table string, typ int) (stmt
} else {
stmt += "1=1"
}
if "all" != op {
stmt += " AND op = '" + op + "'"
}
if HistoryTypeDocName == typ || HistoryTypeDoc == typ || HistoryTypeDocID == typ {
if "all" != op {
stmt += " AND op = '" + op + "'"
}
if HistoryTypeDocName == typ || HistoryTypeDoc == typ {
stmt += " AND path LIKE '%/" + box + "/%' AND path LIKE '%.sy'"
}