mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve db tv filter https://ld246.com/article/1709608533749
This commit is contained in:
parent
a9b8290cd0
commit
c5ef196c45
1 changed files with 7 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ const (
|
|||
)
|
||||
|
||||
func (filter *ViewFilter) GetAffectValue(key *Key) (ret *Value) {
|
||||
if nil != filter.Value && filter.Value.IsGenerated() {
|
||||
if nil != filter.Value {
|
||||
if filter.Value.IsGenerated() {
|
||||
// 自动生成类型的过滤条件不设置默认值
|
||||
return nil
|
||||
|
|
@ -89,8 +89,12 @@ func (filter *ViewFilter) GetAffectValue(key *Key) (ret *Value) {
|
|||
}
|
||||
}
|
||||
|
||||
if nil == filter.Value && nil != filter.RelativeDate {
|
||||
// 相对日期今天的动态日期不设置默认值
|
||||
if nil == filter.Value {
|
||||
if nil != filter.RelativeDate {
|
||||
// 相对日期今天的动态日期不设置默认值
|
||||
return nil
|
||||
}
|
||||
// 两个值都空的情况下也不设置默认值
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue