def enter_round(cls, data): tname = data['tname[]'][0] round_url = data['round_url[]'][0] round_num = data['round_num[]'][0] indexes = data['indexes[]'] enter_tournament_round(round_url, tname, round_num, indexes, False) # makes tweet make_tweet(tname + ' Round ' + round_num)
def create_tournament(cls, meta): name = meta['name'][0] bid_round = int(meta['bid'][0]) prelims = int(meta['prelims'][0]) breaks_to = int(meta['break'][0]) curr_rounds = int(meta['curr_rounds'][0]) tourn = Tournament(tournament_name=name, bid_round=bid_round, prelims=prelims, breaks_to=breaks_to, curr_rounds=curr_rounds) tourn.save() # makes tweet make_tweet(name)