mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-03 06:01:47 +01:00
🎨 Add to Database search on database title only https://github.com/siyuan-note/siyuan/issues/10934
This commit is contained in:
parent
92576d3227
commit
149fb4ebaa
4 changed files with 94 additions and 36 deletions
|
|
@ -229,9 +229,13 @@ func GetAttributeViewName(avID string) (ret string, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
return GetAttributeViewNameByPath(avJSONPath)
|
||||
}
|
||||
|
||||
func GetAttributeViewNameByPath(avJSONPath string) (ret string, err error) {
|
||||
data, err := filelock.ReadFile(avJSONPath)
|
||||
if nil != err {
|
||||
logging.LogErrorf("read attribute view [%s] failed: %s", avID, err)
|
||||
logging.LogErrorf("read attribute view [%s] failed: %s", avJSONPath, err)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue