diff --git a/composeApp/src/desktopMain/kotlin/com/jaytux/grader/viewmodel/DbState.kt b/composeApp/src/desktopMain/kotlin/com/jaytux/grader/viewmodel/DbState.kt index 9998e53..d57c085 100644 --- a/composeApp/src/desktopMain/kotlin/com/jaytux/grader/viewmodel/DbState.kt +++ b/composeApp/src/desktopMain/kotlin/com/jaytux/grader/viewmodel/DbState.kt @@ -730,7 +730,8 @@ class PeerEvaluationState(val evaluation: PeerEvaluation) { private fun Transaction.loadContents(): List { val found = (Groups leftJoin PeerEvaluationContents).selectAll().where { - Groups.editionId eq evaluation.edition.id + (Groups.editionId eq evaluation.edition.id) and + (PeerEvaluationContents.peerEvaluationId eq evaluation.id) }.associate { gc -> val group = Group[gc[Groups.id]] val content = gc[PeerEvaluationContents.content] ?: "" @@ -799,22 +800,3 @@ class PeerEvaluationState(val evaluation: PeerEvaluation) { contents.refresh() } } - - - - - - - - - - - - - - - - - - -