Skip to content
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

Closed
wants to merge 11 commits into from
Closed

Conversation

ranaelnagar
Copy link
Collaborator

@ahmedhagii @AhmedElassuty @AhmedOsam @Mamdou7 @metawaa please review
Issue #346

@ranaelnagar
Copy link
Collaborator Author

@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
Copy link
Collaborator

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

@AhmedOsam
Copy link
Collaborator

@Rania-Abdel-Fattah please add labels :)

@Rania-Abdel-Fattah
Copy link
Collaborator

@AhmedOsam you mean @ranaelnagar not me :D

render "show_statistics"
end
end
Copy link
Collaborator

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

@ahmad-elassuty
Copy link
Collaborator

@ranaelnagar code reopen


# [number_of_problems_answered_correctly - Story 2.1]
Copy link
Collaborator

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"

@Ahmed-Moataz
Copy link
Collaborator

@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"
Copy link
Contributor

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 '='

@hashcashier
Copy link
Contributor

@ranaelnagar Code reopen.

@hashcashier
Copy link
Contributor

@ranaelnagar Code verified.

@ranaelnagar
Copy link
Collaborator Author

@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
@ranaelnagar
Copy link
Collaborator Author

@rami-khalil Review .... 😢

@ranaelnagar ranaelnagar modified the milestones: Sprint 2, Sprint 1 May 18, 2014
@ranaelnagar ranaelnagar self-assigned this May 18, 2014
@ranaelnagar ranaelnagar modified the milestones: Sprint 2, Sprint 1 May 18, 2014
@ahmad-elassuty
Copy link
Collaborator

@ranaelnagar please resolve conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants