adding boatclass
This commit is contained in:
@@ -1830,7 +1830,7 @@ def handle_sendemailfile(first_name, last_name, email, csvfile,**kwargs):
|
||||
|
||||
|
||||
@app.task(bind=True)
|
||||
def handle_otwsetpower(self,f1, boattype, weightvalue,
|
||||
def handle_otwsetpower(self,f1, boattype, boatclass, weightvalue,
|
||||
first_name, last_name, email, workoutid,
|
||||
**kwargs):
|
||||
|
||||
@@ -1922,6 +1922,7 @@ def handle_otwsetpower(self,f1, boattype, weightvalue,
|
||||
progressurl = progressurl,
|
||||
secret = secret,
|
||||
silent = False,
|
||||
boatclass = boatclass,
|
||||
),timeout=1200)
|
||||
result = response.result
|
||||
if result == 0:
|
||||
|
||||
@@ -2949,6 +2949,7 @@ def workout_otwsetpower_view(request,id=0,message="",successmessage=""):
|
||||
#go_service = form.cleaned_data['go_service']
|
||||
boattype = form.cleaned_data['boattype']
|
||||
weightvalue = form.cleaned_data['weightvalue']
|
||||
boatclass = w.workouttype
|
||||
w.boattype = boattype
|
||||
w.weightvalue = weightvalue
|
||||
w.save()
|
||||
@@ -2986,7 +2987,7 @@ def workout_otwsetpower_view(request,id=0,message="",successmessage=""):
|
||||
emailaddress = u.email
|
||||
|
||||
job = myqueue(queuelow,
|
||||
handle_otwsetpower,f1,boattype,
|
||||
handle_otwsetpower,f1,boattype,boatclass,
|
||||
weightvalue,
|
||||
first_name,last_name,emailaddress,encoder.decode_hex(id),
|
||||
ps=[r.p0,r.p1,r.p2,r.p3],
|
||||
|
||||
Reference in New Issue
Block a user