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
@@ -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])
|
||||
|
||||
Reference in new issue
Block a user