Skip to content

Commit

Permalink
fix bug where only max-point submissions were in API responses
Browse files Browse the repository at this point in the history
  • Loading branch information
sealexan committed May 29, 2024
1 parent 0f0a9af commit 773c0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/ch/uzh/ifi/access/service/CourseService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ exit ${'$'}exit_code;
evaluation.remainingAttempts,
task.maxAttempts,
task.information.map { (language, info) -> language to TaskInformationDTO(info.language, info.title, info.instructionsFile) }.toMap().toMutableMap(),
evaluation.submissions.sortedBy { it.ordinalNum }.lastOrNull { it.points == task.maxPoints }?.let { listOf(it) } ?: listOf()
evaluation.submissions.sortedBy { it.ordinalNum }.lastOrNull { it.points != null }?.let { listOf(it) } ?: listOf()
)
}
}
Expand Down

0 comments on commit 773c0c8

Please sign in to comment.