Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit d3b90d2

Browse files
authored
Merge pull request #1303 from bjones1/timed-fix
Fix: logCurrentAnswer is async!
2 parents 9302e27 + 18096a1 commit d3b90d2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Components
2828
runestone/__main__.py
2929
runestone/conftest.py
3030
runestone/shared_conftest.py
31-
runestone/unittest_base.py
3231

3332

3433
Packaging

runestone/timed/js/timed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export default class Timed extends RunestoneBase {
354354
this.currentQuestionIndex
355355
].question.checkCurrentAnswer();
356356
if (!this.done) {
357-
this.renderedQuestionArray[
357+
await this.renderedQuestionArray[
358358
this.currentQuestionIndex
359359
].question.logCurrentAnswer();
360360
}
@@ -952,7 +952,7 @@ export default class Timed extends RunestoneBase {
952952
this.currentQuestionIndex
953953
].question;
954954
await currentQuestion.checkCurrentAnswer();
955-
currentQuestion.logCurrentAnswer();
955+
await currentQuestion.logCurrentAnswer();
956956
currentQuestion.renderFeedback();
957957
currentQuestion.disableInteraction();
958958

0 commit comments

Comments
 (0)