more debugging
This commit is contained in:
@@ -4445,6 +4445,7 @@ def workout_upload_api(request):
|
||||
try:
|
||||
stravaid = post_data['stravaid']
|
||||
except KeyError:
|
||||
print(post_data)
|
||||
stravaid = ''
|
||||
|
||||
if form.is_valid():
|
||||
@@ -4497,7 +4498,7 @@ def workout_upload_api(request):
|
||||
return JSONResponse(status=400,data=message)
|
||||
|
||||
w = Workout.objects.get(id=id)
|
||||
if stravaid:
|
||||
if len(stravaid)>0:
|
||||
print('setting Strava id',stravaid)
|
||||
w.uploadedtostrava = stravaid
|
||||
print(w,w.id,w.user)
|
||||
|
||||
Reference in New Issue
Block a user