mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 12:50:16 +01:00
🎨 Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888
This commit is contained in:
parent
9cf2d34111
commit
bfae99fe3d
1 changed files with 3 additions and 3 deletions
|
|
@ -614,7 +614,7 @@ func (value *Value) CompareOperator(other *Value, operator FilterOperator) bool
|
||||||
contains := false
|
contains := false
|
||||||
for _, c := range value.Relation.Contents {
|
for _, c := range value.Relation.Contents {
|
||||||
for _, c1 := range other.Relation.Contents {
|
for _, c1 := range other.Relation.Contents {
|
||||||
if c == c1 {
|
if strings.Contains(c, c1) {
|
||||||
contains = true
|
contains = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
@ -624,8 +624,8 @@ func (value *Value) CompareOperator(other *Value, operator FilterOperator) bool
|
||||||
case FilterOperatorDoesNotContain:
|
case FilterOperatorDoesNotContain:
|
||||||
contains := false
|
contains := false
|
||||||
for _, c := range value.Relation.Contents {
|
for _, c := range value.Relation.Contents {
|
||||||
for _, c2 := range other.Relation.Contents {
|
for _, c1 := range other.Relation.Contents {
|
||||||
if c == c2 {
|
if strings.Contains(c, c1) {
|
||||||
contains = true
|
contains = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue