Skip to content

Commit

Permalink
Issue #248 fixing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahdi authored and Mahdi committed Apr 25, 2014
1 parent 7961c40 commit 25c83ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tutor/app/controllers/students_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class StudentsController < ApplicationController
# @solved: [int] The number of solved problems
# @failed: [int] The number of failed problems
# @incomplete: [int] The number of incomplete problems
# Author : Mahdi
# 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 All @@ -22,7 +22,7 @@ def get_performance
# params: A hash of the request URL attributes
# Returns:
# An array of solved problems
# Author : Mahdi
# Author: Mahdi
def solved_problems
@solved_list = Attempt.where(student_id:params[:id], success:true).select("DISTINCT problem_id")
end
Expand All @@ -33,7 +33,7 @@ def solved_problems
# params: A hash of the request URL attributes
# Returns:
# An array of failed problems
# Author : Mahdi
# Author: Mahdi
def failed_problems
@failure_list = Attempt.where(student_id:params[:id], failure:true).select("DISTINCT problem_id")
end
Expand All @@ -44,7 +44,7 @@ def failed_problems
# params: A hash of the request URL attributes
# Returns:
# An array of incomplete problems
# Author : Mahdi
# Author: Mahdi
def incomplete_problems
@incomplete_list = Attempt.where(student_id:params[:id], incomplete:true).select("DISTINCT problem_id")
end
Expand Down

0 comments on commit 25c83ba

Please sign in to comment.