def getFMatches(eventKey): matches = [] for n in range(0,len(blueapi.getEventMatches(eventKey))): if blueapi.getEventMatches(eventKey)[n]['comp_level'] == 'f': matches.append(blueapi.getEventMatches(eventKey)[n]['match_number']) matches.sort() return matches
def getMatchVideo(matchNumber,eventKey): videos = blueapi.getEventMatches(eventKey)[matchNumber]['videos'] for n in range(0,5): if videos[n]['type'] == 'youtube': return "youtu.be/" + videos[n]['key'] elif videos[n]['type'] == 'tba': return videos[n]['key']
def getMatchBlueTeams(matchNumber,eventKey): return blueapi.getEventMatches(eventKey)[matchNumber]['alliances']['blue']['teams']
def getMatchRedScore(matchNumber,eventKey): return blueapi.getEventMatches(eventKey)[matchNumber]['alliances']['red']['score']
def getScoreBreakdown(matchNumber,eventKey): return blueapi.getEventMatches(eventKey)[matchNumber]['score_breakdown']
def getMatchTime(matchNumber,eventKey): return blueapi.getEventMatches(eventKey)[matchNumber]['time']
def getMatchKey(matchNumber,eventKey): return blueapi.getEventMatches(eventKey)[matchNumber]['key']
def getTimeString(matchNumber,eventKey): return blueapi.getEventMatches(eventKey)[matchNumber]['time_string']
def getSetNumber(matchNumber,eventKey): return blueapi.getEventMatches(eventKey)[matchNumber]['set_number']