Private
Public Access
1
0

background upload now really in background job

This commit is contained in:
Sander Roosendaal
2021-12-17 08:48:20 +01:00
parent 03ab63fe33
commit 27a560c5a7
5 changed files with 31 additions and 7 deletions

View File

@@ -203,6 +203,7 @@ from rowers.plannedsessions import *
from rowers.tasks import handle_makeplot,handle_otwsetpower,handle_sendemailtcx,handle_sendemailcsv
from rowers.tasks import (
handle_sendemail_unrecognized,handle_sendemailnewcomment,
handle_request_post,
handle_sendemailsummary,
handle_rp3_async_workout,
handle_send_template_email,

View File

@@ -5435,7 +5435,7 @@ def workout_upload_view(request,
title = t,
notes=notes,
)
else:
else:
uploadoptions['secret'] = settings.UPLOAD_SERVICE_SECRET
uploadoptions['user'] = r.user.id
uploadoptions['title'] = t
@@ -5443,7 +5443,11 @@ def workout_upload_view(request,
url = settings.UPLOAD_SERVICE_URL
response = requests.post(url,uploadoptions)
job = myqueue(queuehigh,
handle_request_post,
url,
uploadoptions
)
messages.info(
request,