add output of the percentage of correct answers
This commit is contained in:
1 parent
e362ad45a4
commit
84ec9ef9c7
10 files changed
+1313
-6
No files matched your search
@@ -156,9 +156,9 @@ class UserResponse extends \yii\db\ActiveRecord
|
||||
{
|
||||
$correct_answers = $this->getCorrectAnswers();
|
||||
|
||||
foreach ($correct_answers as $correct_answerr)
|
||||
foreach ($correct_answers as $correct_answer)
|
||||
{
|
||||
if ($this->response_body === $correct_answerr['answer_body'])
|
||||
if ($this->response_body === $correct_answer['answer_body'])
|
||||
{
|
||||
$this->answer_flag = 1;
|
||||
$this->save();
|
||||
|
||||
Reference in new issue
Block a user