From d4cf212104eb1bcb0b0ecd93dabe058bebd73e22 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Thu, 24 Apr 2014 02:26:21 +0200 Subject: [PATCH] Issue #248 Documentation of methods --- tutor/app/controllers/students_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tutor/app/controllers/students_controller.rb b/tutor/app/controllers/students_controller.rb index 172ddf77..15089ba1 100644 --- a/tutor/app/controllers/students_controller.rb +++ b/tutor/app/controllers/students_controller.rb @@ -1,5 +1,7 @@ class StudentsController < ApplicationController - +#Story 5.3 [Performance of a student] +#These methods retrieve variables from tables in the database +#Author : Mahdi def get_performance @solved = Attempt.where(student_id:params[:id], success:true).select("DISTINCT problem_id").count @failed = Attempt.where(student_id:params[:id], failure:true).select("DISTINCT problem_id").count