Returns the deserialized version of a team.
(team_id)
| 63 | |
| 64 | |
| 65 | def serialize_team(team_id): |
| 66 | ''' |
| 67 | Returns the deserialized version of a team. |
| 68 | ''' |
| 69 | return { |
| 70 | 'id': team_id, |
| 71 | 'name': TEAM_ID_TO_NAME[team_id], |
| 72 | 'avatar': TEAM_ID_TO_AVATAR[team_id] |
| 73 | } |
| 74 | |
| 75 | |
| 76 | def serialize_match(cur, round_num: int, match_index: int): |