コード例 #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']