Exemple #1
0
def save_wrestler_action(match_id, bout_id, wrestler_id, activity):
    """
    Good candidate to start using some memcache or redis here
    """
    match = find_match( match_id )
    bout = find_bout( match, bout_id )
    activity.actor = wrestler_id
    bout.rounds.append( activity )
    match.save()
    return json.dumps( activity, default=remove_OIDs )
Exemple #2
0
def get_single_bout(match_id, bout_id):
    match = find_match( match_id )
    bout = find_bout( match, bout_id )
    return json.dumps( bout[0], default=remove_OIDs )