background upload now really in background job
This commit is contained in:
@@ -28,7 +28,8 @@ from rowingdata import (
|
||||
|
||||
from rowers.tasks import (
|
||||
handle_sendemail_unrecognized,handle_setcp,
|
||||
handle_getagegrouprecords, handle_update_wps
|
||||
handle_getagegrouprecords, handle_update_wps,
|
||||
handle_request_post
|
||||
)
|
||||
from rowers.tasks import handle_zip_file
|
||||
|
||||
@@ -76,6 +77,7 @@ allowedcolumns = [key for key,value in strokedatafields.items()]
|
||||
#from async_messages import messages as a_messages
|
||||
import os
|
||||
import zipfile
|
||||
from zipfile import BadZipFile
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
import itertools
|
||||
@@ -2119,7 +2121,11 @@ def new_workout_from_file(r, f2,
|
||||
uploadoptions['file'] = datafile
|
||||
url = settings.UPLOAD_SERVICE_URL
|
||||
|
||||
response = requests.post(url,uploadoptions)
|
||||
job = myqueue(queuehigh,
|
||||
handle_request_post,
|
||||
url,
|
||||
uploadoptions
|
||||
)
|
||||
|
||||
except BadZipFile: # pragma: no cover
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user