Skip to content

Commit

Permalink
args??
Browse files Browse the repository at this point in the history
  • Loading branch information
stgm committed May 22, 2019
1 parent 99f2f30 commit cf8fd5c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/page_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,14 @@ def submit
)

begin
response = server.post({
args = {
file: zipfile,
slug: pset.config['check']['slug'],
password: "martijndoeteenphd",
webhook: "https://#{request.host}/check_result/do",
multipart: true
})
# and add slug/repo/args from the config file
}.merge(pset.config['check'].slice('slug', 'repo', 'args'))
response = server.post(args)
logger.debug JSON.parse(response.body)['id']
logger.debug submit.inspect
submit.check_token = JSON.parse(response.body)['id']
Expand Down

0 comments on commit cf8fd5c

Please sign in to comment.