mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
196c2d262f
commit
9d9c230577
1 changed files with 2 additions and 0 deletions
|
|
@ -522,9 +522,11 @@ func RenderHistoryAttributeView(blockID, avID, viewID, query string, page, pageS
|
||||||
historyDir := matches[0]
|
historyDir := matches[0]
|
||||||
avJSONPath := filepath.Join(historyDir, "storage", "av", avID+".json")
|
avJSONPath := filepath.Join(historyDir, "storage", "av", avID+".json")
|
||||||
if !gulu.File.IsExist(avJSONPath) {
|
if !gulu.File.IsExist(avJSONPath) {
|
||||||
|
logging.LogWarnf("attribute view [%s] not found in history data [%s], use current data instead", avID, historyDir)
|
||||||
avJSONPath = filepath.Join(util.DataDir, "storage", "av", avID+".json")
|
avJSONPath = filepath.Join(util.DataDir, "storage", "av", avID+".json")
|
||||||
}
|
}
|
||||||
if !gulu.File.IsExist(avJSONPath) {
|
if !gulu.File.IsExist(avJSONPath) {
|
||||||
|
logging.LogWarnf("attribute view [%s] not found in current data", avID)
|
||||||
attrView = av.NewAttributeView(avID)
|
attrView = av.NewAttributeView(avID)
|
||||||
} else {
|
} else {
|
||||||
data, readErr := os.ReadFile(avJSONPath)
|
data, readErr := os.ReadFile(avJSONPath)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue