Skip to content

Commit

Permalink
Issue #248 Documentation of methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahdi authored and Mahdi committed Apr 24, 2014
1 parent 9fcae77 commit d4cf212
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tutor/app/controllers/students_controller.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d4cf212

Please sign in to comment.