Skip to content

Commit

Permalink
Collect reaction time from results post.
Browse files Browse the repository at this point in the history
  • Loading branch information
mopore committed Aug 2, 2023
1 parent 0d04103 commit 820d026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/jni_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ class Item(BaseModel):
class ResultsServerRequest(BaseModel):
questions: list[Item]
answers: list[bool]
reactTimes: list[int]
1 change: 1 addition & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async def read_items():
async def create_quizz_results(request: ResultsServerRequest):
questions = request.questions
answers = request.answers
react_times = request.reactTimes

# Count the number of correct answers.
correct_answers = 0
Expand Down

0 comments on commit 820d026

Please sign in to comment.