♻️ Refactor av

This commit is contained in:
Daniel 2025-06-08 12:08:31 +08:00
parent d80bed7b85
commit 9fd0565a61
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 31 additions and 19 deletions

View file

@ -83,8 +83,8 @@ func ExportAv2CSV(avID, blockID string) (zipPath string, err error) {
table := sql.RenderAttributeViewTable(attrView, view, "")
// 遵循视图过滤和排序规则 Use filtering and sorting of current view settings when exporting database blocks https://github.com/siyuan-note/siyuan/issues/10474
table.FilterRows(attrView)
table.SortRows(attrView)
table.Filter(attrView)
table.Sort(attrView)
exportFolder := filepath.Join(util.TempDir, "export", "csv", name)
if err = os.MkdirAll(exportFolder, 0755); err != nil {
@ -2495,8 +2495,8 @@ func exportTree(tree *parse.Tree, wysiwyg, keepFold, avHiddenCol bool,
table := sql.RenderAttributeViewTable(attrView, view, "")
// 遵循视图过滤和排序规则 Use filtering and sorting of current view settings when exporting database blocks https://github.com/siyuan-note/siyuan/issues/10474
table.FilterRows(attrView)
table.SortRows(attrView)
table.Filter(attrView)
table.Sort(attrView)
var aligns []int
for range table.Columns {