Skip to content

Commit

Permalink
Update repository.go
Browse files Browse the repository at this point in the history
  • Loading branch information
proelbtn authored Jan 18, 2025
1 parent a4b236d commit 65812e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmdb-api/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (r *Repository) listUnscoredAnswersFor(ctx context.Context, problemID uuid.
result := []Answer{}
err := r.db.NewSelect().ColumnExpr("answers.*").
Table("answers").
Join("INNER JOIN scores").JoinOn("answers.id = scores.answer_id").
Join("LEFT JOIN scores").JoinOn("answers.id = scores.answer_id").
Where("problem_id = ?", problemID).
Where("point IS NULL").
Scan(ctx, &result)
Expand Down

0 comments on commit 65812e9

Please sign in to comment.