def get_games(teams, games, pages): print "Getting Games" del games[0:len(games)] gosuapi.get_games(teams, games) print "Games Got" for page in pages.values(): page.on_exit() page.refresh_data()
def get_teams_games(teams, games, pages): print "Getting games + teams" gosuapi.get_teams(teams) gosuapi.get_games(teams, games) print "Games and teams got" for page in pages.values(): page.on_exit() page.refresh_data()