예제 #1
0
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
예제 #2
0
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']
예제 #3
0
def getMatchBlueTeams(matchNumber,eventKey):
    return blueapi.getEventMatches(eventKey)[matchNumber]['alliances']['blue']['teams']
예제 #4
0
def getMatchRedScore(matchNumber,eventKey):
    return blueapi.getEventMatches(eventKey)[matchNumber]['alliances']['red']['score']
예제 #5
0
def getScoreBreakdown(matchNumber,eventKey):
    return blueapi.getEventMatches(eventKey)[matchNumber]['score_breakdown']
예제 #6
0
def getMatchTime(matchNumber,eventKey):
    return blueapi.getEventMatches(eventKey)[matchNumber]['time']
예제 #7
0
def getMatchKey(matchNumber,eventKey):
    return blueapi.getEventMatches(eventKey)[matchNumber]['key']
예제 #8
0
def getTimeString(matchNumber,eventKey):
    return blueapi.getEventMatches(eventKey)[matchNumber]['time_string']
예제 #9
0
def getSetNumber(matchNumber,eventKey):
    return blueapi.getEventMatches(eventKey)[matchNumber]['set_number']