add cause to testruns

trigger run and assess on request_for_comment
This commit is contained in:
Ralf Teusner
2017-09-13 13:28:31 +02:00
committed by Maximilian Grundke
parent 6dc34d3ebe
commit 194984a620
8 changed files with 53 additions and 18 deletions

View File

@ -262,7 +262,7 @@ class SubmissionsController < ApplicationController
def save_run_output
if !@message_buffer.blank?
@message_buffer = @message_buffer[(0..max_message_buffer_size-1)] # trim the string to max_message_buffer_size chars
Testrun.create(file: @file, submission: @submission, output: @message_buffer)
Testrun.create(file: @file, cause: 'run', submission: @submission, output: @message_buffer)
end
end