Private
Public Access
1
0

fixing c2 import

This commit is contained in:
Sander Roosendaal
2021-01-21 22:42:24 +01:00
parent 85d4aac34d
commit 8341548aaf
6 changed files with 68 additions and 8 deletions

View File

@@ -4774,6 +4774,7 @@ def workout_upload_api(request):
except KeyError:
c2id = ''
try:
garminid = post_data['garminid']
except KeyError:
@@ -4865,14 +4866,17 @@ def workout_upload_api(request):
w = Workout.objects.get(id=id)
if make_plot:
res, jobid = uploads.make_plot(r,w,f1,f2,plottype,t)
elif r.staticchartonupload != 'None':
plottype = r.staticchartonupload
res, jobid = uploads.make_plot(r,w,f1,f2,plottype,t)
uploads.do_sync(w,post_data,quick=True)
else: # form invalid
if fstr:
os.remove(fstr)