🐛 Database filtering for specific dates not working Fix https://github.com/siyuan-note/siyuan/issues/10518

This commit is contained in:
Daniel 2024-03-08 10:30:41 +08:00
parent a46e626319
commit b7e3e5fd8d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 66 additions and 31 deletions

View file

@ -193,8 +193,7 @@ func (value *Value) IsEdited() bool {
return true
}
if value.IsGenerated() {
// 所有生成的数据都认为是编辑过的
if KeyTypeUpdated == value.Type || KeyTypeCreated == value.Type {
return true
}
@ -206,7 +205,7 @@ func (value *Value) IsEdited() bool {
}
func (value *Value) IsGenerated() bool {
return KeyTypeTemplate == value.Type || KeyTypeRollup == value.Type || KeyTypeUpdated == value.Type || KeyTypeCreated == value.Type
return KeyTypeUpdated == value.Type || KeyTypeCreated == value.Type
}
func (value *Value) IsEmpty() bool {