🎨 Rows non-bound in the database support Add to Database https://github.com/siyuan-note/siyuan/issues/11093

This commit is contained in:
Daniel 2024-04-20 23:10:05 +08:00
parent 9157a6e6e6
commit e16c3cb0fe
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 10 additions and 3 deletions

View file

@ -186,8 +186,9 @@ type SearchAttributeViewResult struct {
HPath string `json:"hPath"`
}
func SearchAttributeView(keyword string) (ret []*SearchAttributeViewResult) {
func SearchAttributeView(keyword string, excludes []string) (ret []*SearchAttributeViewResult) {
waitForSyncingStorages()
ret = []*SearchAttributeViewResult{}
keyword = strings.TrimSpace(keyword)
@ -321,7 +322,7 @@ func SearchAttributeView(keyword string) (ret []*SearchAttributeViewResult) {
hPath = box.Name + hPath
}
if !exist {
if !exist && !gulu.Str.Contains(avID, excludes) {
ret = append(ret, &SearchAttributeViewResult{
AvID: avID,
AvName: existAv.AvName,