Private
Public Access
1
0

improved date behavior for cloning

This commit is contained in:
Sander Roosendaal
2018-02-08 23:11:26 +01:00
parent 9df9969939
commit 6ff73c44c4
2 changed files with 6 additions and 4 deletions

View File

@@ -2226,11 +2226,11 @@ def workout_trimp(workout):
return trimp
def workout_rscore(w):
r = workout.user
df,row = getrowdata_db(id=workout.id)
r = w.user
df,row = getrowdata_db(id=w.id)
df = clean_df_stats(df)
if df.empty:
df,row = getrowdata_db(id=workout.id)
df,row = getrowdata_db(id=w.id)
df = clean_df_stats(df,workstrokesonly=False)
duration = df['time'].max()-df['time'].min()