Compare commits

...

2 Commits

Author SHA1 Message Date
Oskar Winkels 872e10ba08
Fix regression resetting inputs after wait
The wait timer for the next question would trigger the reset of inputs
because FSG thought the question was over without a question submitted
2023-11-22 20:38:53 +01:00
Oskar Winkels ca644a6e66
Update systemd service file 2023-11-22 20:38:33 +01:00
2 changed files with 9 additions and 2 deletions

View File

@ -4,6 +4,9 @@ After=syslog.target network.target nginx.service
[Service]
User=www-data
Group=www-data
ReadWriteDirectories=/var/fs-quiz-tool-db
WorkingDirectory=/var/fs-quiz-tool-db
ExecStart=/usr/bin/python3 -m fs-quiz-tool-db
Restart=always

View File

@ -157,8 +157,12 @@ function updateSubmitTimer() {
clearInterval(state.submitInterval)
if (getRule('questionTimeout') && !getRule('allowQOvertime')) {
console.log("Question not submitted, clearing input");
resetQuestionResponse(state.currentQuestion);
if (!state.waitNextQuestion) {
console.log("Question not submitted, clearing input");
resetQuestionResponse(state.currentQuestion);
}
submitQuiz() // Force next question
}