Commit 0a4e7010 authored by Cool Fire's avatar Cool Fire

Fixed job creation arguments

parent 52742913
...@@ -21,7 +21,7 @@ class ApiController < ApplicationController ...@@ -21,7 +21,7 @@ class ApiController < ApplicationController
@job = Job.new() @job = Job.new()
@job.server_id = Server.find_by_shortname(params[:server_id]).id @job.server_id = Server.find_by_shortname(params[:server_id]).id
@job.command_id = Command.find_by_command(params[:command_id]).id @job.command_id = Command.find_by_command(params[:command_id]).id
@job.args = params[:args] @job.args = "#{params[:user]} #{params[:email]} #{params[:args]}"
@job.state = 2 @job.state = 2
@job.result = "Waiting for results" @job.result = "Waiting for results"
@job.timestampstarted = DateTime.now @job.timestampstarted = DateTime.now
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment