From 8827a5d523cf5e867c6bd59368f7bf15b8fb9a97 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 7 Mar 2024 09:51:27 +0800 Subject: [PATCH] :bug: Database filtering for specific dates not working Fix https://github.com/siyuan-note/siyuan/issues/10518 --- kernel/model/attribute_view.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 1bd890617..e8589f9c6 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -2790,6 +2790,9 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string, if nil != blockVal { blockVal.Block.Updated = now blockVal.UpdatedAt = now + if val.CreatedAt == val.UpdatedAt { + val.UpdatedAt += 1000 // 防止更新时间和创建时间一样 + } if isUpdatingBlockKey { blockVal.IsDetached = val.IsDetached }