added virtual event link
This commit is contained in:
@@ -425,6 +425,13 @@ def get_sessions(r,startdate=date.today(),
|
||||
|
||||
return sps
|
||||
|
||||
def get_my_session_ids(r):
|
||||
sps = PlannedSession.objects.filter(
|
||||
rower__in=[r]
|
||||
).order_by("preferreddate","startdate","enddate")
|
||||
|
||||
return [ps.id for ps in sps]
|
||||
|
||||
def get_workouts_session(r,ps):
|
||||
ws = Workout.objects.filter(user=r,plannedsession=ps)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user