Skip to content

Commit

Permalink
fix result computing
Browse files Browse the repository at this point in the history
  • Loading branch information
danghoangnhan committed Jan 12, 2024
1 parent b284b76 commit 8c14c05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions component/screen/test_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ def handling_submit_button(self):

def submit_test(self):
for question in self.answerList:
print(question.get_answer())
question.set_id(question.get_id()+1)
question.set_answer(pofomopo_consonants[question.get_answer()] if question.get_answer()!= -1 else -1)
question.set_similarity(similarity_list[question.get_similarity()] if question.get_similarity()!=-1 else -1)
question.set_answer(question.get_answer() if question.get_answer()!= -1 else -1)
question.set_similarity(question.get_similarity() if question.get_similarity()!=-1 else -1)

new_user_value = currentSession.get_user_info()
new_user_value["participantID"]=dataHandaler.get_new_sessionId()
Expand Down

0 comments on commit 8c14c05

Please sign in to comment.