added robotx.txt & improved comparison chart
This commit is contained in:
@@ -7844,6 +7844,12 @@ def workout_comparison_view2(request,id1=0,id2=0,xparam='distance',
|
||||
row1 = Workout.objects.get(id=id1)
|
||||
row2 = Workout.objects.get(id=id2)
|
||||
|
||||
mayedit = 0
|
||||
if request.user == row1.user.user:
|
||||
mayedit=1
|
||||
if checkworkoutuser(request.user,row1):
|
||||
mayedit=1
|
||||
|
||||
if row1.workouttype != 'water' or row2.workouttype != 'water':
|
||||
axchoicespro.pop('slip')
|
||||
axchoicespro.pop('wash')
|
||||
@@ -7861,6 +7867,7 @@ def workout_comparison_view2(request,id1=0,id2=0,xparam='distance',
|
||||
'teams':get_my_teams(request.user),
|
||||
'id1':id1,
|
||||
'id2':id2,
|
||||
'mayedit':mayedit,
|
||||
'axchoicesbasic':axchoicesbasic,
|
||||
'axchoicespro':axchoicespro,
|
||||
'noylist':noylist,
|
||||
|
||||
Reference in New Issue
Block a user