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