def sqlQueryGetTeam(team, year): ''' This function grabs a new cursor with a query regarding one team, one year both entered as strings and returns the cursorList returned by the query. ''' # Make a new database and cursor list database = DataSource() cursorList = database.getPlayersByTeam(team, year) return cursorList
def sqlQueryGetTeam(team, year): ''' This function grabs a new cursor list associated with one team and then returns this cursor list to parent function, taking in team and year as strings. ''' # Make a new database and cursor list database = DataSource() cursorList = database.getPlayersByTeam(team, year) return cursorList