fixing c2 import
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user