fix and
cicd / ci (push) Successful in 51s Details

main
bel 2025-04-06 10:40:44 -06:00
parent 9b4accafe3
commit 84bbda1031
1 changed files with 4 additions and 4 deletions

View File

@ -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())