teamcreate done
This commit is contained in:
@@ -32,27 +32,27 @@ import courses
|
||||
|
||||
from rowers.tasks import handle_check_race_course
|
||||
|
||||
def get_todays_micro(plan):
|
||||
def get_todays_micro(plan,thedate=date.today()):
|
||||
thismicro = None
|
||||
|
||||
thismacro = TrainingMacroCycle.objects.filter(
|
||||
plan=plan,
|
||||
startdate__lte = date.today(),
|
||||
enddate__gte = date.today()
|
||||
startdate__lte = thedate,
|
||||
enddate__gte = thedate
|
||||
)
|
||||
|
||||
if thismacro:
|
||||
thismeso = TrainingMesoCycle.objects.filter(
|
||||
plan=thismacro[0],
|
||||
startdate__lte = date.today(),
|
||||
enddate__gte = date.today()
|
||||
startdate__lte = thedate,
|
||||
enddate__gte = thedate
|
||||
)
|
||||
|
||||
if thismeso:
|
||||
thismicro = TrainingMicroCycle.objects.filter(
|
||||
plan=thismeso[0],
|
||||
startdate__lte = date.today(),
|
||||
enddate__gte = date.today()
|
||||
startdate__lte = thedate,
|
||||
enddate__gte = thedate
|
||||
)
|
||||
|
||||
if thismicro:
|
||||
|
||||
Reference in New Issue
Block a user