From 7962f0de1bc6c7f6e424a87a5aa5f50494337eb2 Mon Sep 17 00:00:00 2001 From: David Schuster Date: Tue, 9 Jun 2020 11:14:55 -0400 Subject: [PATCH 1/2] added ip to settings file --- app/models/submission.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/submission.rb b/app/models/submission.rb index d9756e36a..8136d2787 100755 --- a/app/models/submission.rb +++ b/app/models/submission.rb @@ -145,6 +145,7 @@ def save_additional_form_fields(params) if assessment.is_section_dependant form_hash["section"] = (assessment.lecture?) ? course_user_datum.lecture : course_user_datum.section end + form_hash["ip"] = self.submitter_ip self.settings = form_hash.to_json self.save! end From 042b6b5a67c721c67a9dc8f8cc71c8410a770423 Mon Sep 17 00:00:00 2001 From: David Schuster Date: Sat, 13 Jun 2020 12:06:17 -0400 Subject: [PATCH 2/2] graded by in feedback for autograded assignments now report the correct grader --- app/views/assessments/viewFeedback.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/assessments/viewFeedback.html.erb b/app/views/assessments/viewFeedback.html.erb index fdfadd1e9..1fd5b329f 100755 --- a/app/views/assessments/viewFeedback.html.erb +++ b/app/views/assessments/viewFeedback.html.erb @@ -6,7 +6,7 @@ <%= @score.feedback %> Score for this problem: <%= @score.score.to_f().round(1) %> -Graded by: <%= if @score.grader && @score.grader.user then @score.grader.user.email end %> +Graded by: <%= if @score.grader && @score.grader.user then @score.grader.user.email elsif @assessment.has_autograder? then "Autograder" end %>