Vanessa 2026-01-21 10:10:28 +08:00
parent 176328f0f5
commit dafb7673bc
2 changed files with 6 additions and 11 deletions

View file

@ -372,7 +372,7 @@ func getRecentDocs(sortBy string) (ret []*RecentDoc, err error) {
switch sortBy {
case "updated": // 按更新时间排序
// 从数据库查询最近修改的文档
sqlBlocks := sql.SelectBlocksRawStmt("SELECT * FROM blocks WHERE type = 'd' ORDER BY updated DESC", 1, 32)
sqlBlocks := sql.SelectBlocksRawStmt("SELECT * FROM blocks WHERE type = 'd' ORDER BY updated DESC", 1, Conf.FileTree.RecentDocsMaxListCount)
ret = []*RecentDoc{}
if 1 > len(sqlBlocks) {
return