Exemplo n.º 1
0
def get_elim_info_from_text(text):
    print text
    all_info = []
    aff = []
    neg = []
    judge1 = []
    judge2 = []
    judge3 = []
    i = 0  
    while(i < len(text)):
        if ((i-1) % 6) == 0:
            aff.append(process_team_code(text[i]))
            i += 1
        elif ((i-2) % 6) == 0:
            neg.append(process_team_code(text[i]))
            i += 1
        elif ((i-3) % 6) == 0:
            judge1.append(process_team_code(text[i]))
            i += 1
        elif ((i-4) % 6) == 0:
            judge2.append(process_team_code(text[i]))
            i += 1
        elif ((i-5) % 6) == 0:
            judge3.append(process_team_code(text[i]))
            i += 1
        else:
            i += 1
    return aff, neg, judge1, judge2, judge3
Exemplo n.º 2
0
def get_info_from_text(text):
    print text
    all_info = []
    aff = []
    neg = []
    judge = []
    i = 0  
    while(i < len(text)):
        if ((i-1) % 4) == 0:
            aff.append(process_team_code(text[i]))
            i += 1
        elif ((i-2) % 4) == 0:
            neg.append(process_team_code(text[i]))
            i += 1
        elif ((i-3) % 4) == 0:
            judge.append(process_judges_name(text[i]))
            i += 1
        else:
            i += 1
    return aff, neg, judge