Skip to content

Commit

Permalink
shipper: views: expose build ID
Browse files Browse the repository at this point in the history
For later
  • Loading branch information
ericswpark committed Jun 29, 2021
1 parent 30ec05d commit 50924d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shipper/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def build_upload(request, pk):
form = BuildUploadForm(request.POST, request.FILES)
if form.is_valid():
try:
handle_build(device, request.FILES["zip_file"], request.FILES["md5_file"])
build_id = handle_build(device, request.FILES["zip_file"], request.FILES["md5_file"])
except UploadException as exception:
return render(request, 'shipper/build_upload.html', {
'upload_succeeded': False,
Expand All @@ -138,7 +138,8 @@ def build_upload(request, pk):
return render(request, 'shipper/build_upload.html', {
'upload_succeeded': True,
'device': device,
'form': form
'form': form,
'build_id': build_id
})
return render(request, 'shipper/build_upload.html', {
'upload_succeeded': False,
Expand Down

0 comments on commit 50924d3

Please sign in to comment.