Skip to content

Commit 67dbc13

Browse files
committed
Fixed get entire test from course bug
1 parent 524d750 commit 67dbc13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DatabaseApi/src/db_sql_api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ class DbApi {
574574
var i = 0;
575575
exes[0].answers = [];
576576
for (var j = 0; j < results.length; j++) {
577-
while (results[j].exercise_id != (i+1) && i < exes.length) {
577+
while (results[j].exercise_id != exes[i].id && i < exes.length) {
578578
i++;
579579
exes[i].answers = [];
580580
}

0 commit comments

Comments
 (0)