mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
1cf54c34a8
1 changed files with 5 additions and 2 deletions
|
|
@ -140,7 +140,9 @@ func (value *Value) CompareOperator(other *Value, operator FilterOperator) bool
|
|||
case FilterOperatorIsLessOrEqual:
|
||||
return value.Number.Content <= other.Number.Content
|
||||
case FilterOperatorIsEmpty:
|
||||
return 0 == value.Number.Content
|
||||
return !value.Number.IsNotEmpty
|
||||
case FilterOperatorIsNotEmpty:
|
||||
return value.Number.IsNotEmpty
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -232,7 +234,8 @@ type ValueText struct {
|
|||
}
|
||||
|
||||
type ValueNumber struct {
|
||||
Content float64 `json:"content"`
|
||||
Content float64 `json:"content"`
|
||||
IsNotEmpty bool `json:"isNotEmpty"`
|
||||
}
|
||||
|
||||
type ValueDate struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue