

def startdate(request):
    dates = request.args.get('dates')
    day = request.args.get('day')
    week = request.args.get('week')
    if (dates == '7d'):
        return (date.today() - timedelta(days=7))
    elif (dates == 'today'):
        return date.today()
    elif isday(day):
        return get_day(day)
    elif isday(week):
        return week_start(get_day(week))
    return None

dataset/ETHPy150Open mozilla/standup/standup/apps/status/helpers.py startdate/original