This commit is contained in:
Lunny Xiao
2022-09-05 10:53:07 +08:00
committed by Jason Song
parent 8255915350
commit db02603882
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ func (opts FindBuildOptions) toConds() builder.Cond {
if opts.IsClosed.IsTrue() {
cond = cond.And(builder.Expr("status IN (?,?,?,?)", core.StatusError, core.StatusFailing, core.StatusPassing))
} else if opts.IsClosed.IsFalse() {
cond = cond.And(builder.Expr("status IN (?,?,?)", core.StatusPending, core.StatusRunning))
cond = cond.And(builder.Expr("status IN (?,?,?)", core.StatusWaiting, core.StatusPending, core.StatusRunning))
}
return cond
}