Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-03-10 20:25:00 +01:00
parent 42123831ae
commit 2d960b4f38

View File

@@ -329,7 +329,7 @@ def summaryfromsplitdata(splitdata,data,filename,sep='|'):
# logbook but needs to be reviewed.
def createc2workoutdata_as_splits(w):
filename = w.csvfilename
row = rowingdata(filename)
row = rowingdata(csvfile=filename)
# resize per minute
df = row.df.groupby(lambda x:x/60).mean()
@@ -758,10 +758,10 @@ def workout_c2_upload(user,w):
w.uploadedtoc2 = c2id
w.save()
message = "Upload to Concept2 was successful"
# except:
# message = "Something went wrong in workout_c2_upload_view. Response code 200/201 but C2 sync failed: "+response.text
# c2id = 0
else:
message = "Something went wrong in workout_c2_upload_view. Response code 200/201 but C2 sync failed: "+response.text
c2id = 0
return message,c2id