date selector works on plannedsessions
This commit is contained in:
@@ -30,6 +30,7 @@ import numpy as np
|
||||
import dataprep
|
||||
import courses
|
||||
import iso8601
|
||||
from iso8601 import ParseError
|
||||
from rowers.tasks import handle_check_race_course
|
||||
|
||||
def get_todays_micro(plan,thedate=date.today()):
|
||||
@@ -411,7 +412,7 @@ def get_dates_timeperiod(request,startdatestring='',enddatestring=''):
|
||||
startdatestring = request.GET.get('startdate')
|
||||
enddatestring = request.GET.get('enddate')
|
||||
|
||||
if startdate and enddate:
|
||||
if startdatestring and enddatestring:
|
||||
startdate = dt.datetime.strptime(startdatestring,'%Y-%m-%d').date()
|
||||
enddate = dt.datetime.strptime(enddatestring,'%Y-%m-%d').date()
|
||||
return startdate,enddate
|
||||
|
||||
Reference in New Issue
Block a user