mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-12 07:32:11 +00:00
GridCraft: use shared XLS validation operator type
This commit is contained in:
@@ -286,13 +286,13 @@ fn validation_of(v: &x::DataValidation) -> Option<Validation> {
|
||||
ranges,
|
||||
kind,
|
||||
op: match v.operator {
|
||||
x::ValidationOperator::NotBetween => CfOperator::NotBetween,
|
||||
x::ValidationOperator::Equal => CfOperator::Equal,
|
||||
x::ValidationOperator::NotEqual => CfOperator::NotEqual,
|
||||
x::ValidationOperator::Greater => CfOperator::Greater,
|
||||
x::ValidationOperator::Less => CfOperator::Less,
|
||||
x::ValidationOperator::GreaterOrEqual => CfOperator::GreaterOrEqual,
|
||||
x::ValidationOperator::LessOrEqual => CfOperator::LessOrEqual,
|
||||
x::Operator::NotBetween => CfOperator::NotBetween,
|
||||
x::Operator::Equal => CfOperator::Equal,
|
||||
x::Operator::NotEqual => CfOperator::NotEqual,
|
||||
x::Operator::Greater => CfOperator::Greater,
|
||||
x::Operator::Less => CfOperator::Less,
|
||||
x::Operator::GreaterOrEqual => CfOperator::GreaterOrEqual,
|
||||
x::Operator::LessOrEqual => CfOperator::LessOrEqual,
|
||||
_ => CfOperator::Between,
|
||||
},
|
||||
f1,
|
||||
|
||||
Reference in New Issue
Block a user