Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-11-02 18:28:32 +01:00
parent 6d34de641b
commit 0761d4d203
2 changed files with 5 additions and 2 deletions

View File

@@ -1025,7 +1025,7 @@ def fetchcp_new(rower,workouts):
df = pd.read_parquet(cpfile)
df['workout'] = str(workout)
data.append(df)
except OSError:
except:
# CP data file doesn't exist yet. has to be created
df, delta, cpvalues = setcp(workout)
df['workout'] = str(workout)

View File

@@ -3680,8 +3680,11 @@ def interactive_chart(id=0,promember=0,intervaldata = {}):
return [script,div]
def interactive_chart_video(videodata):
try:
spm = videodata['spm']
except KeyError:
return "","No SPM data"
spm = videodata['spm']
time = range(len(spm))
data = zip(time,spm)