Private
Public Access
1
0

added sync options

This commit is contained in:
Sander Roosendaal
2017-09-26 13:57:11 +02:00
parent d56a8bb74d
commit 2a4d0100d2
2 changed files with 70 additions and 4 deletions

View File

@@ -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