mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 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:
parent
7f575be6ba
commit
239a1434e1
1 changed files with 3 additions and 3 deletions
|
|
@ -404,11 +404,11 @@ func buildSearchHistoryQueryFilter(query, op, box, table string, typ int) (stmt
|
||||||
} else {
|
} else {
|
||||||
stmt += "1=1"
|
stmt += "1=1"
|
||||||
}
|
}
|
||||||
|
|
||||||
if HistoryTypeDocName == typ || HistoryTypeDoc == typ || HistoryTypeDocID == typ {
|
|
||||||
if "all" != op {
|
if "all" != op {
|
||||||
stmt += " AND op = '" + op + "'"
|
stmt += " AND op = '" + op + "'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if HistoryTypeDocName == typ || HistoryTypeDoc == typ || HistoryTypeDocID == typ {
|
||||||
if HistoryTypeDocName == typ || HistoryTypeDoc == typ {
|
if HistoryTypeDocName == typ || HistoryTypeDoc == typ {
|
||||||
stmt += " AND path LIKE '%/" + box + "/%' AND path LIKE '%.sy'"
|
stmt += " AND path LIKE '%/" + box + "/%' AND path LIKE '%.sy'"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue