Skip to content

Commit

Permalink
Adjust code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelayori committed Apr 26, 2024
1 parent 9791637 commit ce95f53
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ private void parseQuestionTypes() throws IOException {

@Scheduled(fixedRate = 86400000, initialDelay = 86400000)
public void generateAllQuestions() throws IOException {
started = true;
resetGeneration();
}

Expand All @@ -78,7 +79,7 @@ public void generateQuestions() throws IOException, InterruptedException {
return;
}

if (started){
if (started) {
started = false;
questionService.deleteAllQuestions();
}
Expand Down

0 comments on commit ce95f53

Please sign in to comment.