added sync options
This commit is contained in:
@@ -75,10 +75,12 @@ class Command(BaseCommand):
|
||||
if uploadoptions and not 'error' in uploadoptions:
|
||||
w = Workout.objects.get(wid[0])
|
||||
r = w.user
|
||||
uploads.do_sync(w,uploadoptions)
|
||||
if 'make_plot' in uploadoptions:
|
||||
plottype = uploadoptions['plottype']
|
||||
res = uploads.make_plot(r,w,plottype,
|
||||
title,f2[6:],f2)
|
||||
res = uploads.make_plot(r,w,f2[6:],
|
||||
w.csvfilename,
|
||||
plottype,title)
|
||||
try:
|
||||
if wid != 1:
|
||||
dd = send_confirm(rr.user,title,link,
|
||||
@@ -106,10 +108,13 @@ class Command(BaseCommand):
|
||||
if uploadoptions:
|
||||
w = Workout.objects.get(wid[0])
|
||||
r = w.user
|
||||
uploads.do_sync(w,uploadoptions)
|
||||
if 'make_plot' in uploadoptions:
|
||||
plottype = uploadoptions['plottype']
|
||||
res = uploads.make_plot(r,w,plottype,
|
||||
title,f2[6:],f2)
|
||||
res = uploads.make_plot(r,w,a.document,
|
||||
w.csvfilename,
|
||||
plottype,name)
|
||||
|
||||
|
||||
except:
|
||||
# replace with code to process error
|
||||
|
||||
Reference in New Issue
Block a user