completing new colors
This commit is contained in:
@@ -14760,14 +14760,17 @@ def plannedsessions_coach_view(request,
|
||||
|
||||
for ps in sps:
|
||||
rowerstatus = {}
|
||||
rowercolor = {}
|
||||
for r in rowers:
|
||||
ratio, status,completiondate = is_session_complete(r,ps)
|
||||
rowerstatus[r.id] = status
|
||||
rowercolor[r.id] = cratiocolors[status]
|
||||
sessiondict = {
|
||||
'id': ps.id,
|
||||
'results':rowerstatus,
|
||||
'name': ps.name,
|
||||
'startdate': ps.startdate,
|
||||
'color': rowercolor,
|
||||
'preferreddate': ps.preferreddate,
|
||||
'enddate': ps.enddate,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user