Private
Public Access
1
0

added try/except for elapsed time

This commit is contained in:
Sander Roosendaal
2017-04-24 08:44:51 +02:00
parent 6e7127deca
commit f5f6918bed

View File

@@ -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