adding date filter on sessions
This commit is contained in:
@@ -134,7 +134,7 @@ def add_member(id,rower):
|
|||||||
res = handle_add_workouts_team(ws,t)
|
res = handle_add_workouts_team(ws,t)
|
||||||
|
|
||||||
# code to add plannedsessions
|
# code to add plannedsessions
|
||||||
plannedsessions = PlannedSession.objects.filter(team=t)
|
plannedsessions = PlannedSession.objects.filter(team=t,enddate__gte=timezone.now().date())
|
||||||
for ps in plannedsessions:
|
for ps in plannedsessions:
|
||||||
res = ps.rower.add(rower)
|
res = ps.rower.add(rower)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user