improved date behavior for cloning
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user