Skip to content

Commit

Permalink
Merge pull request #70 from JuezLTI/renewAuthorkitExercise
Browse files Browse the repository at this point in the history
Renew only when exercise is in Authorkit and not in codetest
  • Loading branch information
frasese authored Apr 13, 2023
2 parents 131921a + e7d491d commit 8db1878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion student-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

$firstExerciseAkId = $exercises[$currentExerciseNumber - 1]->getAkId();
$firstExerciseId = $exercises[$currentExerciseNumber - 1]->getExerciseId();
if ( $USER->instructor ) {
$isAK_exercise = !$exercises[$currentExerciseNumber - 1]->getCodeExercise();
if ( $USER->instructor && $isAK_exercise) {
$renewed = downloadAkExercise($firstExerciseAkId);
}
$exerciseTestsResponse = $REST_CLIENT_REPO->getClient()->request('GET', "api/exercises/$firstExerciseAkId/tests");
Expand Down

0 comments on commit 8db1878

Please sign in to comment.