diff --git a/app/controller/problem_set_test.go b/app/controller/problem_set_test.go index b3d2e252..0daf23e5 100644 --- a/app/controller/problem_set_test.go +++ b/app/controller/problem_set_test.go @@ -1507,7 +1507,7 @@ func TestGetProblemSetGrades(t *testing.T) { { ID: databaseProblemSet.Grades[0].ID, UserID: user1.ID, - User: nil, + User: user1, ProblemSetID: problemSet.ID, ProblemSet: nil, ClassID: class.ID, @@ -1520,7 +1520,7 @@ func TestGetProblemSetGrades(t *testing.T) { { ID: databaseProblemSet.Grades[1].ID, UserID: user2.ID, - User: nil, + User: user2, ProblemSetID: problemSet.ID, ProblemSet: nil, ClassID: class.ID, diff --git a/base/utils/problem_set.go b/base/utils/problem_set.go index 19fc0a31..e59abfdb 100644 --- a/base/utils/problem_set.go +++ b/base/utils/problem_set.go @@ -136,7 +136,7 @@ func CreateEmptyGrades(problemSet *models.ProblemSet) error { } // json log - log.Errorf("Empty detail JSON: %s", emptyDetail) + log.Debugf("Empty detail JSON: %s", emptyDetail) // Record students who have a grade gradeSet := make(map[uint]bool)