bug fix in C2 upload
This commit is contained in:
@@ -895,6 +895,16 @@ def workout_c2_upload_view(request,id=0):
|
||||
return HttpResponseRedirect("/rowers/me/c2authorize")
|
||||
|
||||
data = c2stuff.createc2workoutdata(w)
|
||||
if data == 0:
|
||||
message = "Error: No data file. Contact info@rowsandall.com if this problem persists"
|
||||
url = reverse(workout_export_view,
|
||||
kwargs = {
|
||||
'message':str(message),
|
||||
'id':str(w.id),
|
||||
})
|
||||
|
||||
return HttpResponseRedirect(url)
|
||||
|
||||
authorizationstring = str('Bearer ' + thetoken)
|
||||
headers = {'Authorization': authorizationstring,
|
||||
'user-agent': 'sanderroosendaal',
|
||||
|
||||
Reference in New Issue
Block a user