bug fix nr of comments on workflow middle panel
This commit is contained in:
@@ -6303,6 +6303,10 @@ def workout_workflow_view(request,id):
|
|||||||
if request.user == row.user.user:
|
if request.user == row.user.user:
|
||||||
mayedit=1
|
mayedit=1
|
||||||
|
|
||||||
|
comments = WorkoutComment.objects.filter(workout=row)
|
||||||
|
|
||||||
|
aantalcomments = len(comments)
|
||||||
|
|
||||||
workouttype = 'ote'
|
workouttype = 'ote'
|
||||||
if row.workouttype in ('water','coastal'):
|
if row.workouttype in ('water','coastal'):
|
||||||
workouttype = 'otw'
|
workouttype = 'otw'
|
||||||
@@ -6364,6 +6368,7 @@ def workout_workflow_view(request,id):
|
|||||||
'mapdiv':mapdiv,
|
'mapdiv':mapdiv,
|
||||||
'statcharts':statcharts,
|
'statcharts':statcharts,
|
||||||
'rower':r,
|
'rower':r,
|
||||||
|
'aantalcomments':aantalcomments,
|
||||||
})
|
})
|
||||||
|
|
||||||
# The famous flex chart
|
# The famous flex chart
|
||||||
|
|||||||
Reference in New Issue
Block a user