-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pull Request: C2_Rana_Statistics #579
Conversation
@fadel1493 can you please review me ?!! |
# [average number of trials - Story 2.3] | ||
# Select a problem_id and count the number of students who tried to answer this problem | ||
# Parameters : | ||
# success_attempts:an intger value that shows the number of correct answers by students |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ranaelnagar please only use tabs, not space and tab
@Rania-Abdel-Fattah please add labels :) |
@AhmedOsam you mean @ranaelnagar not me :D |
render "show_statistics" | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave an empty line before "end" of the whole class
@ranaelnagar code reopen |
|
||
# [number_of_problems_answered_correctly - Story 2.1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ranaelnagar "Number Of Problems Answered Correctly"
@ranaelnagar Doc. reopen. |
if Solution.where(problem_id: @problem.id) != 0 | ||
@attempt=Solution.where(problem_id: @problem.id).pluck(:code) | ||
if @attempt == "" | ||
flash[:notice]="no one answered this problem" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ranaelnagar add space before and after '='
@ranaelnagar Code reopen. |
@ranaelnagar Code verified. |
@rami-khalil please Can you review again ?!! 🐰 |
…nto C2_Rana_statistics Conflicts: tutor/Gemfile tutor/app/controllers/problems_controller.rb tutor/app/views/tracks/show.html.erb
…nto C2_Rana_statistics
@rami-khalil Review .... 😢 |
@ranaelnagar please resolve conflicts |
@ahmedhagii @AhmedElassuty @AhmedOsam @Mamdou7 @metawaa please review
Issue #346