fix and
cicd / ci (push) Successful in 51s
Details
cicd / ci (push) Successful in 51s
Details
parent
9b4accafe3
commit
84bbda1031
|
|
@ -46,17 +46,17 @@ func buildQuery(config Config, args args) (ledger.Like, error) {
|
||||||
switch args.peek() {
|
switch args.peek() {
|
||||||
case "and":
|
case "and":
|
||||||
args.pop()
|
args.pop()
|
||||||
var like ledger.Like
|
var and ledger.Like
|
||||||
switch args.peek() {
|
switch args.peek() {
|
||||||
case "not":
|
case "not":
|
||||||
args.pop()
|
args.pop()
|
||||||
log.Println("and not", args.peek())
|
log.Println("and not", args.peek())
|
||||||
like = notLike(likeName(args.pop()))
|
and = notLike(likeName(args.pop()))
|
||||||
default:
|
default:
|
||||||
log.Println("and ", args.peek())
|
log.Println("and ", args.peek())
|
||||||
like = likeName(args.pop())
|
and = likeName(args.pop())
|
||||||
}
|
}
|
||||||
like = andLike(like, like)
|
like = andLike(like, and)
|
||||||
case "not":
|
case "not":
|
||||||
args.pop()
|
args.pop()
|
||||||
log.Println("or not ", args.peek())
|
log.Println("or not ", args.peek())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue