fixes issue #236 - reverts to include rest strokes
if workout is only rest strokes, stats shown for entire workout
This commit is contained in:
@@ -6878,6 +6878,10 @@ def workout_stats_view(request,id=0,message="",successmessage=""):
|
|||||||
datadf = dataprep.clean_df_stats(datadf,workstrokesonly=workstrokesonly)
|
datadf = dataprep.clean_df_stats(datadf,workstrokesonly=workstrokesonly)
|
||||||
|
|
||||||
|
|
||||||
|
if datadf.empty:
|
||||||
|
datadf,row = dataprep.getrowdata_db(id=id)
|
||||||
|
datadf = dataprep.clean_df_stats(datadf,workstrokesonly=False)
|
||||||
|
workstrokesonly=False
|
||||||
if datadf.empty:
|
if datadf.empty:
|
||||||
return HttpResponse("CSV data file not found")
|
return HttpResponse("CSV data file not found")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user