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() {
|
||||
case "and":
|
||||
args.pop()
|
||||
var like ledger.Like
|
||||
var and ledger.Like
|
||||
switch args.peek() {
|
||||
case "not":
|
||||
args.pop()
|
||||
log.Println("and not", args.peek())
|
||||
like = notLike(likeName(args.pop()))
|
||||
and = notLike(likeName(args.pop()))
|
||||
default:
|
||||
log.Println("and ", args.peek())
|
||||
like = likeName(args.pop())
|
||||
and = likeName(args.pop())
|
||||
}
|
||||
like = andLike(like, like)
|
||||
like = andLike(like, and)
|
||||
case "not":
|
||||
args.pop()
|
||||
log.Println("or not ", args.peek())
|
||||
|
|
|
|||
Loading…
Reference in New Issue