Private
Public Access
1
0

changed admin

This commit is contained in:
Sander Roosendaal
2018-06-28 16:40:07 +02:00
parent 04bbbda2a8
commit 951e707b6e
2 changed files with 14 additions and 5 deletions

View File

@@ -282,8 +282,12 @@ def add_c2_stroke_data_db(strokedata,workoutid,starttimeunix,csvfilename,
res = df.to_csv(csvfilename,index_label='index',
compression='gzip')
data = dataprep(df,id=workoutid,bands=False,debug=debug)
try:
data = dataprep(df,id=workoutid,bands=False,debug=debug)
except:
return 0
return data
# Processes painsled CSV file to database