add output of the percentage of correct answers

This commit is contained in:
iIronside committed 2021-10-25 13:41:12 +03:00
1 parent e362ad45a4
commit 84ec9ef9c7
10 files changed
+1313 -6

No files matched your search

+1 -1
View File
@@ -117,7 +117,7 @@ class Answer extends \yii\db\ActiveRecord
return $this->flags[$this->status];
}
static function getCurrentAnswersNum($question_id)
static function getCorrectAnswersNum($question_id)
{
return Answer::find()
->where('question_id=:question_id', [':question_id' => $question_id])