added try/except for elapsed time
This commit is contained in:
@@ -407,7 +407,10 @@ def save_workout_database(f2,r,dosmooth=True,workouttype='rower',
|
||||
totaldist = row.df['cum_dist'].max()
|
||||
if totaltime == 0:
|
||||
totaltime = row.df['TimeStamp (sec)'].max()-row.df['TimeStamp (sec)'].min()
|
||||
totaltime = totaltime+row.df.ix[0,' ElapsedTime (sec)']
|
||||
try:
|
||||
totaltime = totaltime+row.df.ix[0,' ElapsedTime (sec)']
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user