if len(params) <= 1:
raise QueryParserException("`{}` is not allowed for value operations, "
"Operation: {}".format(op, operation))
return op, negation, params
if not operation:
raise QueryParserException("Expression is not valid, it must be formatted as "
"name:operation, "
After Change
if len(params) <= 1:
raise QueryParserException("`{}` is not allowed for value operations, "
"Operation: {}".format(op, operation))
return QueryOpSpec(op, negation, params)
if not operation:
raise QueryParserException("Expression is not valid, it must be formatted as "
"name:operation, "