Skip to content

Commit 52dd888

Browse files
committed
Only show submissions in ranking command
1 parent a75b3ee commit 52dd888

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/ranking.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,12 @@ var rankingCmd = &cobra.Command{
6767
// )
6868

6969
condInferencesExist := upper.Cond{"inferences.0 $exists": "true"}
70+
cond := upper.And(
71+
condInferencesExist,
72+
upper.Cond{"is_submission": true},
73+
)
7074

71-
err = col.Find(condInferencesExist, 0, 0, &jobs)
75+
err = col.Find(cond, 0, 0, &jobs)
7276
if err != nil {
7377
return err
7478
}

0 commit comments

Comments
 (0)