Exemplo n.º 1
0
def partial_loader(year, id, week):
    """
    Given a year, team id and week, performs a full load beginning with that team, in ascending order of team id.
    >>> partial_loader(2010, 235, 13)
    """
    teams = CollegeYear.objects.filter(college__updated=True, season=year, college__id__gte=id).order_by('college_college.id')
    game_updater(year, teams, week)
Exemplo n.º 2
0
def full_nostats_load(year, week):
    """
    Given a year and week, performs a full load of games, but just scores, not player and game stats. Useful for 
    updates on a Saturday before game xml files are available on ncaa.org.
    >>> full_nostats_load(2010, 13)
    """
    game_updater(year, None, week, nostats=True)
Exemplo n.º 3
0
def full_nostats_load(year, week):
    """
    Given a year and week, performs a full load of games, but just scores, not player and game stats. Useful for 
    updates on a Saturday before game xml files are available on ncaa.org.
    >>> full_nostats_load(2010, 13)
    """
    game_updater(year, None, week, nostats=True)
Exemplo n.º 4
0
def partial_loader(year, id, week):
    """
    Given a year, team id and week, performs a full load beginning with that team, in ascending order of team id.
    >>> partial_loader(2010, 235, 13)
    """
    teams = CollegeYear.objects.filter(
        college__updated=True, season=year,
        college__id__gte=id).order_by('college_college.id')
    game_updater(year, teams, week)
Exemplo n.º 5
0
def prepare_new_season(year):
    add_college_years(year)
    update_conference_membership(year)
    game_updater(year, None, 19)
    create_weeks(year)
    game_weeks(year)
    update_conf_games(year)
    games = Game.objects.filter(season=year, coach1__isnull=True, coach2__isnull=True)
    for game in games:
        populate_head_coaches(game)
Exemplo n.º 6
0
def prepare_new_season(year):
    add_college_years(year)
    update_conference_membership(year)
    game_updater(year, None, 19)
    create_weeks(year)
    game_weeks(year)
    update_conf_games(year)
    games = Game.objects.filter(season=year,
                                coach1__isnull=True,
                                coach2__isnull=True)
    for game in games:
        populate_head_coaches(game)
Exemplo n.º 7
0
def full_load(year, week):
    """
    Given a year and week, performs a full load of games including all player and game stats.
    >>> full_load(2010, 13)
    """
    game_updater(year, None, week)
Exemplo n.º 8
0
def full_load(year, week):
    """
    Given a year and week, performs a full load of games including all player and game stats.
    >>> full_load(2010, 13)
    """
    game_updater(year, None, week)