I am currently making a system for my robotics team and I have a problem where instead of just printing the team number, I it prints the team number and frc in front of it. I was able to figure it out for just a list of all the teams with [3:], but when I do it for the match's it just removes one of the teams. I think i has something to do with fact that the match numbers are a dictionary. I was wondering if there was a way to remove the frc in a dictionary? Thanks! This is my code:
for match in eventMatches:
matchNumber = {}
matchNumber['blue'] = match.alliances.get('blue').get('team_keys')
eventmatchList.append(matchNumber)
for key in matchNumber.keys():
worksheet.write_row(row, col, matchNumber[key])
row += 1
row = 1
col = 4
for match in eventMatches:
matchNumber = {}
matchNumber['red'] = match.alliances.get('red').get('team_keys')
eventmatchList.append(sorted(matchNumber))
for key in matchNumber.keys():
worksheet.write_row(row, col, matchNumber[key])
row += 1