Private
Public Access
1
0

fixes issue #236 - reverts to include rest strokes

if workout is only rest strokes, stats shown for entire workout
This commit is contained in:
Sander Roosendaal
2017-12-03 21:51:21 +01:00
parent da4449e900
commit 57a5da5186

View File

@@ -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")