added other rowers result to session view
This commit is contained in:
@@ -12162,6 +12162,7 @@ def plannedsession_view(request,id=0,rowerid=0):
|
||||
|
||||
m = getrower(request.user)
|
||||
|
||||
|
||||
if not rowerid:
|
||||
r = m
|
||||
else:
|
||||
@@ -12176,6 +12177,8 @@ def plannedsession_view(request,id=0,rowerid=0):
|
||||
if ps.manager != request.user and r not in ps.rower.all():
|
||||
raise PermissionDenied("You do not have access to this session")
|
||||
|
||||
resultsdict = get_session_metrics(ps)
|
||||
resultsdict = pd.DataFrame(resultsdict).transpose().to_dict()
|
||||
|
||||
psdict = my_dict_from_instance(ps,PlannedSession)
|
||||
|
||||
@@ -12196,7 +12199,8 @@ def plannedsession_view(request,id=0,rowerid=0):
|
||||
'manager':m,
|
||||
'rower':r,
|
||||
'ratio':ratio,
|
||||
'status':status
|
||||
'status':status,
|
||||
'results':resultsdict,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user