Private
Public Access
1
0

bug fixes

This commit is contained in:
Sander Roosendaal
2020-10-18 13:01:47 +02:00
parent aec817b01d
commit 567d450d96
2 changed files with 2 additions and 1 deletions

View File

@@ -1504,7 +1504,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
workouttype__in=otwtypes,
)
dd,cpcp,avgpower = fetchcp_new(r,workouts)
dd,cpcp,avgpower,workoutnames = fetchcp_new(r,workouts)
powerdf = pd.DataFrame({
'Delta':dd,

View File

@@ -2434,6 +2434,7 @@ def otwrankings_view(request,userid=0,
powerdf = pd.DataFrame({
'Delta':delta,
'CP':cpvalue,
'workout':pd.Series(),
})
if powerdf.empty: